-
Notifications
You must be signed in to change notification settings - Fork 28
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
OpenAI for retrieval seems not working #103
Comments
Can you share what you did? What code did you run, cli, etc. @j-a-m-a-l-i |
I cloned the repo and did change the hal-9100.toml as follow:
I added my openai api key to hal-9100.toml and run the following:
But I got the following error:
I added OPENAI_API_KEY to environment section in docker-compose file and it fixed that error. Then I tried to use retrieval tool with this code:
Connecting directly to OpenAI assistant api give me the correct answer from the pdf. Connecting to hal-9100 give me this: |
And this is the log:
|
@louis030195 Am I doing something wrong? or this can be a bug? |
Using OpenAI for retrieval I encountered two problems:
1- it cannot read the openai key from hal-9100.toml. I had to add it to environment section of docker-compose file. Now it have access to the key.
2- It does not have access to the pdf that I've added to the assistant. Looking at the log it shows that chunks are empty (Im not sure if this the reason for not answering question from the pdf)
The text was updated successfully, but these errors were encountered: