22 lines
641 B
Python
22 lines
641 B
Python
"""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}>"
|