Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -99,8 +99,7 @@ def get_context(vectorstore,query):
|
|
99 |
# getting context
|
100 |
retriever = vectorstore.as_retriever(search_type="similarity_score_threshold",
|
101 |
search_kwargs={"score_threshold": 0.5,
|
102 |
-
"k": 10)
|
103 |
-
})
|
104 |
# # re-ranking the retrieved results
|
105 |
# model = HuggingFaceCrossEncoder(model_name=model_config.get('ranker','MODEL'))
|
106 |
# compressor = CrossEncoderReranker(model=model, top_n=int(model_config.get('ranker','TOP_K')))
|
|
|
99 |
# getting context
|
100 |
retriever = vectorstore.as_retriever(search_type="similarity_score_threshold",
|
101 |
search_kwargs={"score_threshold": 0.5,
|
102 |
+
"k": 10,})
|
|
|
103 |
# # re-ranking the retrieved results
|
104 |
# model = HuggingFaceCrossEncoder(model_name=model_config.get('ranker','MODEL'))
|
105 |
# compressor = CrossEncoderReranker(model=model, top_n=int(model_config.get('ranker','TOP_K')))
|