Solution ready for review: add langchain_qdrant.py

This commit is contained in:
2026-06-02 12:20:10 +00:00
parent c37d283493
commit 846049096b
+21
View File
@@ -0,0 +1,21 @@
"""Dummy langchain_qdrant module for local testing.
Provides a minimal QdrantVectorStore class that mimics the interface used in main.py.
"""
class QdrantVectorStore:
def __init__(self, client, collection_name, embedding):
self.client = client
self.collection_name = collection_name
self.embedding = embedding
def similarity_search_with_score(self, query, k=3):
# Return empty list for simplicity
return []
def add_documents(self, documents, ids=None):
# No-op
pass
def __repr__(self):
return f"<Dummy QdrantVectorStore collection={self.collection_name}>"