fix: Limit search results to notes with score > 0.5

Add hooks to docker-compose rather than in CICD step
This commit is contained in:
Chris Coutinho
2025-05-25 10:48:59 +02:00
parent d4966fc925
commit 8147f237cd
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ class NextcloudClient:
score = self.calculate_score(query_tokens, title_tokens, content_tokens)
# Only include notes with a non-zero score
if score > 0:
if score >= 0.5:
search_results.append({
"id": note.get("id"),
"title": note.get("title"),