EmbeddingModel
interface EmbeddingModel
A model that turns texts into vectors, so that texts that mean the same have vectors that point the same way. SemanticStore uses one to find what a query is about. It is the interface for every provider, as ChatModel is for chat: OpenAiEmbeddingModel of telar-openai reaches OpenAI, Ollama, Gemini and every server with the embeddings API of OpenAI.
A test that needs no provider implements it with a few lines, for example with a vector that counts the words of a list in each text.
Properties
Link copied to clipboard
Names the model and the settings that change its vectors, such as text-embedding-3-small with 512 dimensions. Vectors of two models cannot be compared, so a SemanticStore makes the vectors of its items again when this changes.