Skip to content
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

集成llama是否需要正确的openai_key #61

Open
rivergao87 opened this issue Sep 16, 2023 · 2 comments
Open

集成llama是否需要正确的openai_key #61

rivergao87 opened this issue Sep 16, 2023 · 2 comments

Comments

@rivergao87
Copy link

集成llama是否需要正确的openai_key? 没有提供正确的key时host_local_tools无法正常启动。在bmtools/tools/retriever.py document_embedding = self.embed.embed_documents([document]) 时 会调用langchain 的 embeddings 里的openai.py里面的embedding方法,而错误的openai_key无法实例化model,也就无法embedding,请问需要怎样设置?怎样改变?谢谢!

@Niceanyh
Copy link

Niceanyh commented Nov 3, 2023

我也遇到这个问题, 我使用了正确的openai_key 但langchain.embeddings.OpenAIEmbeddings一直无响应

@Niceanyh
Copy link

问题解决了,我后来使用了本地的huggingface hub的Sentence embedding模型

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants