-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Redis doesn't return results when using query endpoint #51
Comments
When you uploaded your document with Upsert, What did the debug look like? Here is an example
When you query, What does the response look like? Here is an example of one that worked, and two that didn't. Worked Error
|
|
@zainabalthafeeri1 You can validate that the documents are indeed indexed in Redis? (use |
I'm also getting the error: Uploaded documents via the ---UPDATE--- |
Yes, the documents were indexed in Redis with its respective embedding |
the sample docs have "source_id", remove that and delete all documents with the delete endpoint |
I just encountered the same issue where Redis doesn't return any results when I provide the "document_id" in the filter:
I an running the |
@ccqpein I think I have a fix for your issue. |
Hi @tylerhutcherson , I just pull the latest main branch and run the test. Unfortunately, this time redis doesn't return the result whether I give it # in chatgpt-retrieval-plugin/examples/docker/redis
docker-compose up -d
# back to chatgpt-retrieval-plugin
# DATASTORE="redis"
# BEARER_TOKEN and API token are in env also
poetry run start
# in other shell
# upsert the read me of chatgpt-retrieval-plugin
curl \
-H "Authorization: Bearer {token}" \
-X POST \
-F 'file=@README.md;type=text/markdown' \
http://0.0.0.0:8000/upsert-file
# return 200 and the document id
curl -H "Authorization: Bearer {token}"\
-H "Content-Type: application/json"\
-X POST \
-d '{"queries": [{"query": "start up"}]}' http://0.0.0.0:8000/query
# return empty results.
# and in terminal that poetry is running, it give a log "Failed to query, error: 'MilvusDataStore' object has no attribute 'col'" Everything is fine when I use |
This particular issue looks like something different. upsert-file is not working properly for Redis. Opening a new issue |
my PR is open which should address this and other things! |
I've added documents to the Redis search using the upsert API, and the documents were added successfully. Still, when I want to use the query API, the results returned are always empty, I have tried different files with different types (PDF, DOCX), but nothing returned in the response.
The text was updated successfully, but these errors were encountered: