harshitv804 commited on
Commit
eb1991e
1 Parent(s): b3cf434

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ if "memory" not in st.session_state:
53
 
54
  embeddings = HuggingFaceEmbeddings(model_name="BAAI/llm-embedder")
55
  db = FAISS.load_local("medchat_db", embeddings)
56
- db_retriever = db.as_retriever(search_type="similarity",search_kwargs={"k": 2})
57
 
58
  custom_prompt_template = """This is a chat tempalte and you are a medical practitioner lmm who provides correct medical information. You are given the following pieces of information to answer the user's question correctly. Choose only the required context based on the user's question. Utilize the provided knowledge base and search for relevant information. Follow the question format closely. The information should be abstract and concise. Understand all the context given here and generate only the answer. If you don't know the answer, just say that you don't know, don't try to make up an answer.
59
 
 
53
 
54
  embeddings = HuggingFaceEmbeddings(model_name="BAAI/llm-embedder")
55
  db = FAISS.load_local("medchat_db", embeddings)
56
+ db_retriever = db.as_retriever(search_type="similarity",search_kwargs={"k": 3})
57
 
58
  custom_prompt_template = """This is a chat tempalte and you are a medical practitioner lmm who provides correct medical information. You are given the following pieces of information to answer the user's question correctly. Choose only the required context based on the user's question. Utilize the provided knowledge base and search for relevant information. Follow the question format closely. The information should be abstract and concise. Understand all the context given here and generate only the answer. If you don't know the answer, just say that you don't know, don't try to make up an answer.
59