datacipen commited on
Commit
ee774ba
1 Parent(s): a5ba234

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": 150,"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": 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