Refactor logging for vector similarity search with configurable threshold

This commit is contained in:
yangdx
2025-02-13 02:14:32 +08:00
parent 9a77d91023
commit 3308ecfa69
2 changed files with 6 additions and 3 deletions

View File

@@ -139,9 +139,6 @@ class NanoVectorDBStorage(BaseVectorStorage):
async def query(self, query: str, top_k=5):
embedding = await self.embedding_func([query])
embedding = embedding[0]
logger.info(
f"Query: {query}, top_k: {top_k}, cosine: {self.cosine_better_than_threshold}"
)
results = self._client.query(
query=embedding,
top_k=top_k,