Update app.py
Browse files
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.
|
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
|