Update main.py
Browse files
main.py
CHANGED
@@ -62,7 +62,7 @@ index_name = "all-venus"
|
|
62 |
vectorstore = PineconeVectorStore(
|
63 |
index_name=index_name, embedding=embeddings
|
64 |
)
|
65 |
-
retriever = vectorstore.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .7, "k":
|
66 |
#search = vectorstore.similarity_search(query,k=50, filter={"categorie": {"$eq": "bibliographie-OPP-DGDIN"}, 'Source': {'$eq': 'Source : Persée'}})
|
67 |
|
68 |
@cl.on_chat_start
|
|
|
62 |
vectorstore = PineconeVectorStore(
|
63 |
index_name=index_name, embedding=embeddings
|
64 |
)
|
65 |
+
retriever = vectorstore.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .7, "k": 170,"filter": {'categorie': {'$eq': 'bibliographie-OPP-DGDIN'}}})
|
66 |
#search = vectorstore.similarity_search(query,k=50, filter={"categorie": {"$eq": "bibliographie-OPP-DGDIN"}, 'Source': {'$eq': 'Source : Persée'}})
|
67 |
|
68 |
@cl.on_chat_start
|