rbughao commited on
Commit
49eb330
1 Parent(s): 747633c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -10,6 +10,12 @@ from llama_index import VectorStoreIndex, SimpleDirectoryReader, SummaryIndex, d
10
  PDFReader = download_loader("PDFReader")
11
  loader = PDFReader()
12
 
 
 
 
 
 
 
13
  documents = loader.load_data(file='toolkit.pdf')
14
  index = VectorStoreIndex.from_documents(documents)
15
  query_engine = index.as_query_engine()
 
10
  PDFReader = download_loader("PDFReader")
11
  loader = PDFReader()
12
 
13
+ #loading options
14
+ # loader = SimpleDirectoryReader(input_files = ["pdf1","pdf2"])
15
+ # documents = loader.load_data()
16
+ # or
17
+ # documents = loader.load_data(file=['toolkit.pdf','pdf2','pdf3'])
18
+
19
  documents = loader.load_data(file='toolkit.pdf')
20
  index = VectorStoreIndex.from_documents(documents)
21
  query_engine = index.as_query_engine()