-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
为什么只在LLMEmbedder的encode前加下划线,前面的模型没有 #1114
Comments
在python函数命名标准里,一般以单下划线起命名的函数是供内部其他函数调用的,不直接在API中使用
LLMEmbedder是根据6个具体任务分别用不同的query instruction和key instruction进行微调的,所以在encode时需要针对不同任务对query和key选择不同的instruction,建议直接使用函数 |
@ZiyiXia 谢谢,但我是和前面其他模型(FlagLLMModel、FlagModel)对比的,它们的接口看起来都是差不多的,如果是这样的话前面两个是否应该加上下划线?谢谢! |
FlagEmbedding/FlagEmbedding/flag_models.py
Line 516 in 274f4c0
是否应该删除下划线以保持一致性
The text was updated successfully, but these errors were encountered: