Update main.py
Browse files
main.py
CHANGED
@@ -96,9 +96,9 @@ def Retriever(categorie):
|
|
96 |
elif categorie == "year":
|
97 |
retriever = vectorstore.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .7, "k": 6,"filter": {'year': {'$gte': 2019}}})
|
98 |
elif categorie == "skills":
|
99 |
-
retriever = vectorstore.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .7, "k":
|
100 |
elif categorie == "videosTC":
|
101 |
-
retriever = vectorstore.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .7, "k":
|
102 |
return retriever
|
103 |
|
104 |
def Search(input, categorie):
|
|
|
96 |
elif categorie == "year":
|
97 |
retriever = vectorstore.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .7, "k": 6,"filter": {'year': {'$gte': 2019}}})
|
98 |
elif categorie == "skills":
|
99 |
+
retriever = vectorstore.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .7, "k": 200,"filter": {'file': {'$eq': 'competences-master-CFA.csv'}}})
|
100 |
elif categorie == "videosTC":
|
101 |
+
retriever = vectorstore.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .7, "k": 200,"filter": {"title": {"$eq": "videos-confinement-timeline"}}})
|
102 |
return retriever
|
103 |
|
104 |
def Search(input, categorie):
|