-
Error When Using
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey there, @Alnasser0! I'm here to help you with any bugs, questions, or contributions you have regarding the project. Let's tackle this issue together! There is a similar closed issue regarding a TypeError with the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
Yes, you can use
HuggingFaceEmbedding
with instruct models, utilizingquery_instruction
andtext_instruction
. TheInstructorEmbedding
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 theINSTRUCTOR_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…