Skip to content

Error When Using intfloat/multilingual-e5-large-instruct with llama_index #18150

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

You must be logged in to vote

Yes, you can use HuggingFaceEmbedding with instruct models, utilizing query_instruction and text_instruction. The InstructorEmbedding class in the LlamaIndex framework supports this by using functions to retrieve the appropriate instructions for a given model name. If the model is part of the INSTRUCTOR_MODELS, it uses default instructions for queries and texts. This setup ensures that the correct instructions are applied based on the model type, allowing effective integration with HuggingFaceEmbedding [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | O…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Alnasser0
Comment options

@dosubot
Comment options

@Alnasser0
Comment options

@dosubot
Comment options

Answer selected by Alnasser0
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