Skip to main content

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 updated through Settings

import { OpenAIEmbedding, Settings } from "llamaindex";

Settings.embedModel = new OpenAIEmbedding({
model: "text-embedding-ada-002",
});

Local Embedding

For local embeddings, you can use the HuggingFace embedding model.

Available Embeddings

Most available embeddings are listed in the sidebar on the left. Additionally the following integrations exist without separate documentation:

Check the LlamaIndexTS Github for the most up to date overview of integrations.

API Reference