Spaces:
Runtime error
Runtime error
how many more issues
Browse files
rag_pipeline/reranking/rerank.py
CHANGED
|
@@ -77,7 +77,7 @@ def retrieve_and_grade(
|
|
| 77 |
from rag_pipeline.config import get_groq_client
|
| 78 |
groq_client = get_groq_client()
|
| 79 |
|
| 80 |
-
raw = hybrid_search_expanded(query,retriever=_bm25._retriever,client=_sem._qdrant,bi_encoder=_sem._bi_encoder,all_chunks=_bm25._all_chunks, top_k=fetch_k)
|
| 81 |
pre_confidence, _ = confidence_score(raw[:top_k])
|
| 82 |
|
| 83 |
if pre_confidence >= confidence_threshold:
|
|
|
|
| 77 |
from rag_pipeline.config import get_groq_client
|
| 78 |
groq_client = get_groq_client()
|
| 79 |
|
| 80 |
+
raw = hybrid_search_expanded(query,retriever=_bm25._retriever,client=_sem._qdrant,bi_encoder=_sem._bi_encoder,all_chunks=_bm25._all_chunks,groq_client=groq_client, top_k=fetch_k)
|
| 81 |
pre_confidence, _ = confidence_score(raw[:top_k])
|
| 82 |
|
| 83 |
if pre_confidence >= confidence_threshold:
|