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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user