-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Thanks for the latest and greatest update. Deployed everything and restarted my tests. However with the local qdrant instance I seem to still run in the same issue. I have a single PDF document which contains variable country names and the doc ingests without error. This is verified from the backend response and from the qdrant console.
To Reproduce
I have a single extraction request without any detailed rules: "Extract all the countries in the text"
Expected behavior
All (or at least) most of the countries listed in the doc / vector chunks should show up in the column
Logs and Error Reports
python3 -m uvicorn app.main:app
WARNING:dotenv.main:Python-dotenv could not parse statement starting at line 1
INFO:app.api.v1.endpoints.query:Query router initialized
INFO: Loading config settings from the environment...
INFO: Started server process [90890]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:app.services.llm.factory:Creating LLM service for provider: openai
INFO:app.services.vector_db.factory:Creating vector database service with provider: qdrant
INFO:app.api.v1.endpoints.document:Endpoint received file: RAStrat_SAKURA_ReLaunch_MC_LadyPad_0_5Drops_1gout_Confiance_20240822.pdf, content type: application/pdf
INFO:app.services.document_service:Created document_id: d40c8e7710dd4663875d1862bc14bcd9
INFO:app.services.loaders.factory:Creating loader of type: pypdf
INFO:app.services.loaders.factory:Using PyPDFLoader
INFO:app.services.document_service:Document split into 97 chunks
INFO:app.services.vector_db.base:Preparing 97 chunks
INFO:app.services.vector_db.base:Generating embeddings.
INFO:httpx:HTTP Request: POST https://api.openai.com/v1/embeddings "HTTP/1.1 200 OK"
INFO:app.services.vector_db.qdrant_service:Upserting 97 chunks
INFO:httpx:HTTP Request: GET http://localhost:6333/collections/knowledge_table/exists "HTTP/1.1 200 OK"
INFO:httpx:HTTP Request: PUT http://localhost:6333/collections/knowledge_table/points?wait=true "HTTP/1.1 200 OK"
INFO: 127.0.0.1:54462 - "POST /api/v1/document HTTP/1.1" 201 Created
INFO:app.services.llm.factory:Creating LLM service for provider: openai
INFO:app.services.vector_db.factory:Creating vector database service with provider: qdrant
INFO:app.api.v1.endpoints.query:Received query request: {'document_id': 'd40c8e7710dd4663875d1862bc14bcd9', 'prompt': {'id': 'cm33710ez00013b6i54nrt03z', 'entity_type': 'country', 'query': 'Extract all the countries found in the text. Use full country names or ISO-3 country codes.', 'type': 'str', 'rules': []}}
INFO:app.services.vector_db.qdrant_service:Retrieving vectors for 1 queries.
INFO:app.services.vector_db.qdrant_service:Generating embedding.
INFO:httpx:HTTP Request: POST https://api.openai.com/v1/embeddings "HTTP/1.1 200 OK"
INFO:app.services.vector_db.qdrant_service:Searching...
INFO:httpx:HTTP Request: POST http://localhost:6333/collections/knowledge_table/points/query "HTTP/1.1 400 Bad Request"
ERROR:app.api.v1.endpoints.query:Error processing query: Unexpected Response: 400 (Bad Request)
Raw response content:
b'{"status":{"error":"Wrong input: Conversion between multi and regular vectors failed"},"time":0.007499875}'
INFO: 127.0.0.1:54496 - "POST /api/v1/query HTTP/1.1" 500 Internal Server Error
Would appreciate your support to get this working with the local qdrant instance. Happy to explain more details if I can support in debugging.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working