Skip to content

Commit b41145a

Browse files
Embedder rework (#180)
* feat: embedder rework * fix: get min vector distance instead of max
1 parent 1198fda commit b41145a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

business_objects/embedding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def get_match_record_ids_to_qdrant_ids_with_max_score(
459459
query = f"""
460460
{__generate_with_table_union_query(qdrant_results)}
461461
462-
SELECT et.record_id::TEXT id, MAX(s.score) score
462+
SELECT et.record_id::TEXT id, MIN(s.score) score
463463
FROM embedding_tensor et
464464
INNER JOIN scores s
465465
ON et.id = s.id

enums.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,7 @@ class AgreementType(Enum):
522522

523523

524524
class EmbeddingPlatform(Enum):
525-
PYTHON = "python"
526525
HUGGINGFACE = "huggingface"
527-
COHERE = "cohere"
528526
OPENAI = "openai"
529527
AZURE = "azure"
530528

0 commit comments

Comments
 (0)