reduce topk
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ llm = ChatPerplexity(temperature=0, pplx_api_key=GROQ_API_KEY, model="llama-3.1-
|
|
87 |
|
88 |
# Initialize Reranker
|
89 |
model = HuggingFaceCrossEncoder(model_name="BAAI/bge-reranker-base")
|
90 |
-
compressor = CrossEncoderReranker(model=model, top_n=
|
91 |
|
92 |
compression_retriever = ContextualCompressionRetriever(
|
93 |
base_compressor=compressor, base_retriever=retriever
|
|
|
87 |
|
88 |
# Initialize Reranker
|
89 |
model = HuggingFaceCrossEncoder(model_name="BAAI/bge-reranker-base")
|
90 |
+
compressor = CrossEncoderReranker(model=model, top_n=10)
|
91 |
|
92 |
compression_retriever = ContextualCompressionRetriever(
|
93 |
base_compressor=compressor, base_retriever=retriever
|