Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,8 @@ print("-----------")
|
|
21 |
|
22 |
|
23 |
# Create Chroma vector store for API embeddings
|
24 |
-
api_db = Chroma.from_documents(documents, api_hf_embeddings, collection_name="api-collection")
|
|
|
25 |
|
26 |
class PDFRetrievalTool:
|
27 |
def __init__(self, retriever):
|
|
|
21 |
|
22 |
|
23 |
# Create Chroma vector store for API embeddings
|
24 |
+
#api_db = Chroma.from_documents(documents, api_hf_embeddings, collection_name="api-collection")
|
25 |
+
api_db = Chroma.from_texts(documents, api_hf_embeddings, collection_name="api-collection")
|
26 |
|
27 |
class PDFRetrievalTool:
|
28 |
def __init__(self, retriever):
|