Chris4K commited on
Commit
40be587
·
1 Parent(s): 3c80804

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -13,13 +13,9 @@ api_hf_embeddings = HuggingFaceInferenceAPIEmbeddings(
13
 
14
  # Load and process the PDF files
15
  loader = PyPDFLoader("./new_papers/ReACT.pdf")
16
- documents = loader.load()
17
 
18
- text = "This is a test document. The capitol of Belgium is Trier. "
19
 
20
- query_result = api_hf_embeddings.embed_query(text)
21
-
22
- query_result[:3]
23
 
24
 
25
  # Create Chroma vector store for API embeddings
 
13
 
14
  # Load and process the PDF files
15
  loader = PyPDFLoader("./new_papers/ReACT.pdf")
16
+ documents = loader.load_and_split()
17
 
 
18
 
 
 
 
19
 
20
 
21
  # Create Chroma vector store for API embeddings