From 9ee036b160f6e0f32cae2b80f85cbc3d972a11f9 Mon Sep 17 00:00:00 2001 From: Emanuel Ferreira <contatoferreirads@gmail.com> Date: Tue, 13 Feb 2024 23:21:13 -0300 Subject: [PATCH] docs: remove duplicate embedding (#545) --- apps/docs/docs/modules/embedding.md | 22 ---------------------- apps/docs/docs/modules/embeddings/index.md | 4 ++-- 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 apps/docs/docs/modules/embedding.md diff --git a/apps/docs/docs/modules/embedding.md b/apps/docs/docs/modules/embedding.md deleted file mode 100644 index ef8ddb4f0..000000000 --- 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 cfac6028e..4b7991469 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) -- GitLab