Spaces:
Sleeping
Sleeping
test limit_k=6
Browse files- app/api/rag_routes.py +1 -1
app/api/rag_routes.py
CHANGED
|
@@ -588,7 +588,7 @@ async def chat_with_engine(
|
|
| 588 |
# Nếu không có trong cache, tạo mới và lưu cache
|
| 589 |
retriever_params = {
|
| 590 |
"index_name": engine.pinecone_index_name,
|
| 591 |
-
"top_k": engine.similarity_top_k,
|
| 592 |
"limit_k": engine.similarity_top_k * 2, # Mặc định lấy gấp đôi top_k
|
| 593 |
"similarity_metric": DEFAULT_SIMILARITY_METRIC,
|
| 594 |
"similarity_threshold": engine.vector_distance_threshold
|
|
|
|
| 588 |
# Nếu không có trong cache, tạo mới và lưu cache
|
| 589 |
retriever_params = {
|
| 590 |
"index_name": engine.pinecone_index_name,
|
| 591 |
+
"top_k": engine.similarity_top_k * 2,
|
| 592 |
"limit_k": engine.similarity_top_k * 2, # Mặc định lấy gấp đôi top_k
|
| 593 |
"similarity_metric": DEFAULT_SIMILARITY_METRIC,
|
| 594 |
"similarity_threshold": engine.vector_distance_threshold
|