Chris4K commited on
Commit
59071bc
·
1 Parent(s): c7297e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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):