Fix Qdrant Client Compatibility and Role RAG Tests
- Upgrade qdrant-client usage to query_points (replacing deprecated search) - Relax qdrant-client version constraint in requirements.txt (>=1.7.0) - Config: Allow extra environment variables in Settings (for local dev) - test_roles_rag.py: Fix import path for local execution
This commit is contained in:
@@ -72,12 +72,13 @@ class RAGChatService:
|
||||
if collection_name not in existing_collections:
|
||||
continue
|
||||
|
||||
# Search in Qdrant
|
||||
search_results = self.qdrant.search(
|
||||
# Search in Qdrant using new Query API
|
||||
response = self.qdrant.query_points(
|
||||
collection_name=collection_name,
|
||||
query_vector=query_embedding,
|
||||
query=query_embedding,
|
||||
limit=limit
|
||||
)
|
||||
search_results = response.points
|
||||
|
||||
# Format results
|
||||
for hit in search_results:
|
||||
|
||||
Reference in New Issue
Block a user