Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update comment

davidmezzetti80b90cdbd6e9
diff --git a/src/python/txtai/embeddings/search/hybrid.py b/src/python/txtai/embeddings/search/hybrid.py
index 439c9394..db36aeff 100644
--- a/src/python/txtai/embeddings/search/hybrid.py
+++ b/src/python/txtai/embeddings/search/hybrid.py
@@ -143,8 +143,6 @@ class LogOdds:
densemedian, densealpha = self.calibrate(denseraw)
# Phase 3: Fuse via weighted mean log-odds with confidence scaling.
- # Raw logit scores are used for ranking instead of sigmoid(logit) to
- # preserve fine-grained ordering among top candidates.
fused = self.fuse(uids, weights, densemedian, densealpha)
return sorted(fused.items(), key=lambda x: x[1], reverse=True)[:limit]