h2oai / h2ogpt

Private chat with local GPT with document, images, video, etc. 100% private, Apache 2.0. Supports oLLaMa, Mixtral, llama.cpp, and more. Demo: https://gpt.h2o.ai/ https://gpt-docs.h2o.ai/
http://h2o.ai
Apache License 2.0
11.28k stars 1.24k forks source link

Can we query Qdrant directly without needing sources? #1692

Closed andrewyuau closed 2 months ago

andrewyuau commented 3 months ago

I followed instructions to spin up Qdrant using Docker and passed the QDRANT_URL and QDRANT_API_KEY.

I'm trying to get h2ogpt to query Qdrant directly by not having any files in /workspace/user_path and deleting the directory /workspace/db_dir_UserData. However, I am getting an error message "Did not generate db for UserData since no sources" which originates from line 6258 in gpt_langchain.py.

Is it possible to use my own Qdrant without needing sources?

andrewyuau commented 3 months ago

My current workaround is to have one entry in /workspace/user_path and h2ogpt automatically adds that entry into my Qdrant DB. I then delete that entry manually from Qdrant DB and then h2ogpt can query the rest of the entries in my own Qdrant DB.

pseudotensor commented 2 months ago

@Anush008 may be able to help.

Anush008 commented 2 months ago

Hey @andrewyuau, from the codebase, I see it should only be a log message and not an error. You should probably be able to continue to using it.

andrewyuau commented 2 months ago

The workaround works for me so I will close this, thank you.