obaes commited on
Commit
713a6b8
1 Parent(s): a55bd12
Files changed (4) hide show
  1. app.py +1 -0
  2. testrag.xlsx +0 -0
  3. testrag2.pdf +0 -0
  4. ~$testrag.xlsx +0 -0
app.py CHANGED
@@ -15,6 +15,7 @@ Settings.embed_model = embed_model
15
 
16
  def qa(question: str, doc: str) -> str:
17
  my_pdf = SimpleDirectoryReader(input_files=[doc]).load_data()
 
18
  my_pdf_index = VectorStoreIndex.from_documents(my_pdf)
19
  my_pdf_engine = my_pdf_index.as_query_engine()
20
  question = "repond en francais, " + question
 
15
 
16
  def qa(question: str, doc: str) -> str:
17
  my_pdf = SimpleDirectoryReader(input_files=[doc]).load_data()
18
+ reponse = my_pdf + reponse
19
  my_pdf_index = VectorStoreIndex.from_documents(my_pdf)
20
  my_pdf_engine = my_pdf_index.as_query_engine()
21
  question = "repond en francais, " + question
testrag.xlsx CHANGED
Binary files a/testrag.xlsx and b/testrag.xlsx differ
 
testrag2.pdf ADDED
Binary file (9.74 kB). View file
 
~$testrag.xlsx ADDED
Binary file (165 Bytes). View file