Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -135,7 +135,7 @@ async def chat(query,history,sources,reports,subtype,year):
|
|
135 |
question_lst= [query]
|
136 |
for question in question_lst:
|
137 |
retriever = vectorstore.as_retriever(
|
138 |
-
search_type="similarity_score_threshold", search_kwargs={"score_threshold": 0.6, "k": 3, filter
|
139 |
|
140 |
context_retrieved = retriever.invoke(question)
|
141 |
|
|
|
135 |
question_lst= [query]
|
136 |
for question in question_lst:
|
137 |
retriever = vectorstore.as_retriever(
|
138 |
+
search_type="similarity_score_threshold", search_kwargs={"score_threshold": 0.6, "k": 3, "filter":filter})
|
139 |
|
140 |
context_retrieved = retriever.invoke(question)
|
141 |
|