We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae33cc5 + 7703b22 commit ab93197Copy full SHA for ab93197
src/mcp_server_qdrant/qdrant.py
@@ -40,10 +40,14 @@ async def store_memory(self, information: str):
40
41
async def find_memories(self, query: str) -> list[str]:
42
"""
43
- Find memories in the Qdrant collection.
+ Find memories in the Qdrant collection. If there are no memories found, an empty list is returned.
44
:param query: The query to use for the search.
45
:return: A list of memories found.
46
47
+ collection_exists = await self._client.collection_exists(self._collection_name)
48
+ if not collection_exists:
49
+ return []
50
+
51
search_results = await self._client.query(
52
self._collection_name,
53
query_text=query,
0 commit comments