datacipen commited on
Commit
0e6dd33
1 Parent(s): ee774ba

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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": 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
 
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": 160,"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