-
Method to build a query engine from graph index has parameter named Usage example: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
🤖 Hey @mikozh, nice to see you diving into the depths of LlamaIndex again! How's the coding journey treating you? The The possible values that the The The Sources
|
Beta Was this translation helpful? Give feedback.
🤖
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 themodel
parameter, is used in theget_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. Themode
parameter can take values such asOpenAIEmbeddingMode.SIMILARITY_MODE
orOpenAIEmbeddingMode.TEXT_SEARCH_MODE
, which are then used along with themodel
parameter to select the appro…