update new hybrid match_documents
Browse files- app/supabase_db.py +1 -1
app/supabase_db.py
CHANGED
|
@@ -32,7 +32,7 @@ class SupabaseClient:
|
|
| 32 |
return None
|
| 33 |
|
| 34 |
@timing_decorator_sync
|
| 35 |
-
def match_documents(self, embedding: List[float], match_count: int = 20, vehicle_keywords: Optional[List[str]] = None, user_question: str = '', min_rank_threshold: float = 0.
|
| 36 |
"""
|
| 37 |
Truy vấn vector similarity search qua RPC match_documents.
|
| 38 |
Input: embedding (list[float]), match_count (int), vehicle_keywords (list[str] hoặc None)
|
|
|
|
| 32 |
return None
|
| 33 |
|
| 34 |
@timing_decorator_sync
|
| 35 |
+
def match_documents(self, embedding: List[float], match_count: int = 20, vehicle_keywords: Optional[List[str]] = None, user_question: str = '', min_rank_threshold: float = 0.001, rrf_k: int = 60):
|
| 36 |
"""
|
| 37 |
Truy vấn vector similarity search qua RPC match_documents.
|
| 38 |
Input: embedding (list[float]), match_count (int), vehicle_keywords (list[str] hoặc None)
|