adjust Q&A
Browse files- app/supabase_db.py +2 -2
app/supabase_db.py
CHANGED
|
@@ -31,7 +31,7 @@ class SupabaseClient:
|
|
| 31 |
return None
|
| 32 |
|
| 33 |
@timing_decorator_sync
|
| 34 |
-
def match_documents(self, embedding: List[float], match_count: int =
|
| 35 |
"""
|
| 36 |
Truy vấn vector similarity search qua RPC match_documents.
|
| 37 |
Input: embedding (list[float]), match_count (int), vehicle_keywords (list[str] hoặc None)
|
|
@@ -40,7 +40,7 @@ class SupabaseClient:
|
|
| 40 |
try:
|
| 41 |
payload = {
|
| 42 |
'query_embedding': embedding,
|
| 43 |
-
'match_threshold': 0.
|
| 44 |
'match_count': match_count
|
| 45 |
}
|
| 46 |
if vehicle_keywords:
|
|
|
|
| 31 |
return None
|
| 32 |
|
| 33 |
@timing_decorator_sync
|
| 34 |
+
def match_documents(self, embedding: List[float], match_count: int = 10, vehicle_keywords: Optional[List[str]] = None):
|
| 35 |
"""
|
| 36 |
Truy vấn vector similarity search qua RPC match_documents.
|
| 37 |
Input: embedding (list[float]), match_count (int), vehicle_keywords (list[str] hoặc None)
|
|
|
|
| 40 |
try:
|
| 41 |
payload = {
|
| 42 |
'query_embedding': embedding,
|
| 43 |
+
'match_threshold': 0.1,
|
| 44 |
'match_count': match_count
|
| 45 |
}
|
| 46 |
if vehicle_keywords:
|