Skip to content
Snippets Groups Projects
Unverified Commit 9ee036b1 authored by Emanuel Ferreira's avatar Emanuel Ferreira Committed by GitHub
Browse files

docs: remove duplicate embedding (#545)

parent c2b52119
No related branches found
No related tags found
No related merge requests found
---
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)
...@@ -18,5 +18,5 @@ For local embeddings, you can use the [HuggingFace](./available_embeddings/huggi ...@@ -18,5 +18,5 @@ For local embeddings, you can use the [HuggingFace](./available_embeddings/huggi
## API Reference ## API Reference
- [OpenAIEmbedding](../api/classes/OpenAIEmbedding.md) - [OpenAIEmbedding](../../api/classes/OpenAIEmbedding.md)
- [ServiceContext](../api/interfaces//ServiceContext.md) - [ServiceContext](../../api/interfaces//ServiceContext.md)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment