Skip to content

Meaning of embedding_mode option #11492

Answered by dosubot bot
mikozh asked this question in Q&A
Discussion options

You must be logged in to vote

🤖

Hey @mikozh, nice to see you diving into the depths of LlamaIndex again! How's the coding journey treating you?

The embedding_mode parameter in the method to build a query engine from the graph index in the LlamaIndex codebase is used to determine the engine for embeddings. This parameter, along with the model parameter, is used in the get_engine function, which utilizes dictionaries like _QUERY_MODE_MODEL_DICT and _TEXT_MODE_MODEL_DICT to map the mode and model to a specific OpenAI embedding model. The mode parameter can take values such as OpenAIEmbeddingMode.SIMILARITY_MODE or OpenAIEmbeddingMode.TEXT_SEARCH_MODE, which are then used along with the model parameter to select the appro…

Replies: 1 comment

Comment options

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