diff --git a/apps/docs/docs/modules/embedding.md b/apps/docs/docs/modules/embedding.md deleted file mode 100644 index ef8ddb4f081c3755b3c370091ac2ee80f4e93ad2..0000000000000000000000000000000000000000 --- a/apps/docs/docs/modules/embedding.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -sidebar_position: 4 ---- - -# Embedding - -The embedding model in LlamaIndex is responsible for creating numerical representations of text. By default, LlamaIndex will use the `text-embedding-ada-002` model from OpenAI. - -This can be explicitly set in the `ServiceContext` object. - -```typescript -import { OpenAIEmbedding, serviceContextFromDefaults } from "llamaindex"; - -const openaiEmbeds = new OpenAIEmbedding(); - -const serviceContext = serviceContextFromDefaults({ embedModel: openaiEmbeds }); -``` - -## API Reference - -- [OpenAIEmbedding](../api/classes/OpenAIEmbedding.md) -- [ServiceContext](../api/interfaces//ServiceContext.md) diff --git a/apps/docs/docs/modules/embeddings/index.md b/apps/docs/docs/modules/embeddings/index.md index cfac6028efbad319ae609ecc02714021baa4cb54..4b79914690e670f90417b67ef7d92b6567c51a0b 100644 --- a/apps/docs/docs/modules/embeddings/index.md +++ b/apps/docs/docs/modules/embeddings/index.md @@ -18,5 +18,5 @@ For local embeddings, you can use the [HuggingFace](./available_embeddings/huggi ## API Reference -- [OpenAIEmbedding](../api/classes/OpenAIEmbedding.md) -- [ServiceContext](../api/interfaces//ServiceContext.md) +- [OpenAIEmbedding](../../api/classes/OpenAIEmbedding.md) +- [ServiceContext](../../api/interfaces//ServiceContext.md)