ppsingh commited on
Commit
075510e
·
verified ·
1 Parent(s): 3d3fc58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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')))