-
Notifications
You must be signed in to change notification settings - Fork 21
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
Error on docker compose up #4
Comments
I have a doubt, in my doc dir I can put what kind of files? |
Hi @gabazureus - thank you for checking my project out 😄 I managed to reproduce your error. It occurs because no files were found to index (in the The code picks up any bricky/api/pipelines/indexing.py Line 53 in 8437ec2
Also note that the files need to be visible to the docker container, either by copying them into a local project folder that gets copied on build, or by mounting a volume. A quick start could be to put your markdown files in the |
Hey @larsbaunwall Thanks for the reply! I tried to put a .md file inside the api/sources, and specified this folder in DOC_DIR in .env file like you said. But the same error persisted. So I tried to deleting all the contents of the main.py, openai.py and indexing.py files. And then tried these commands:
And then the same error persist, even with these files without any lines. Before that I put many prints inside indexing.py and main.py, and none of them printed in the log. I tried commenting out this line as well "disable_telemetry()" in main.py, to see if the following line in the log disappears: "INFO:haystack.telemetry:Telemetry has been disabled.". But it showed up anyway. I don't know if I'm doing something wrong with docker, because I'm new to this. Thanks! |
From your description, I'm wondering if your docker-compose is using recent images. Deleting contents in those files should give you a whole range of other errors 😉 Have you tried running |
Oh yes! This command made it. Thanks! Now I can open localhost:8080/docs But when I asked a question, I got these errors:
I tried "/api/sources" or "api/sources", and it give me the same. Then I tried only "sources" and it worked! Simply awesome!! A doubt, is it possible to change the default language to read the DOCs contents, and the answer of Bricky to Portuguese? If yes, what can I change in the code? Thank you, I would like to help you more If I can. |
Hello!
First of all, awesome project! Thank you!
I am running this on Ubuntu 22.04.
I have created an .env file inside the "api" directory with this configuration
And then I entered inside the "api" folder, and tried to run "docker compose up", and got these errors:
I can access localhost:3000, but I get this error when I do:
I can't access localhost:8000/docs
Am I doing something wrong?
Thanks!
The text was updated successfully, but these errors were encountered: