carlosgonzalezmartinez commited on
Commit
36c80d4
·
verified ·
1 Parent(s): a4bf793
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -92,7 +92,7 @@ scheduler = CommitScheduler(
92
  # Define the Q&A system message
93
 
94
  qna_system_message = """
95
- You are an assistant to a financial services firm who answers user queries on annual reports.
96
  User input will have the context required by you to answer user questions.
97
  This context will begin with the token: ###Context.
98
  The context contains references to specific portions of a document relevant to the user query.
@@ -144,7 +144,7 @@ Here are some documents that are relevant to the question.
144
 
145
  def predict(user_input,company):
146
 
147
- filter = "dataset/"+company+"-10-k-2023.pdf"
148
  relevant_document_chunks = vectorstore_persisted.similarity_search(user_input, k=5, filter={"source":filter})
149
 
150
  # Create context_for_query
 
92
  # Define the Q&A system message
93
 
94
  qna_system_message = """
95
+ You are an assistant to a financial services firm who answers user queries on annual 10 K reports.
96
  User input will have the context required by you to answer user questions.
97
  This context will begin with the token: ###Context.
98
  The context contains references to specific portions of a document relevant to the user query.
 
144
 
145
  def predict(user_input,company):
146
 
147
+ filter = "Dataset-10k/"+company+"-10-k-2023.pdf"
148
  relevant_document_chunks = vectorstore_persisted.similarity_search(user_input, k=5, filter={"source":filter})
149
 
150
  # Create context_for_query