Skip to content

Which embedding model does Vanna uses to convert text to embedding? #378

Answered by zainhoda
off6atomic asked this question in Q&A
Discussion options

You must be logged in to vote

This depends on the setup you're using. Generally speaking for each vector store, it'll be whatever the "default" is. For example, for ChromaDB, it used the default embedding function as defined here:

https://github.com/vanna-ai/vanna/blob/main/src/vanna/chromadb/chromadb_vector.py#L12

Which can then be overridden as necessary.

If you're setting up with vector storage that doesn't include it's own embedding functionality, then you can reference the generate_embedding function, which would have an implementation like this (example for using OpenAI):
https://github.com/vanna-ai/vanna/blob/main/src/vanna/openai/openai_embeddings.py#L34-L46

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by off6atomic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants