Chris4K commited on
Commit
32b2f7d
·
1 Parent(s): 2aea27f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -24,6 +24,11 @@ print("-----------")
24
  text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
25
  vdocuments = text_splitter.split_documents(documents)
26
 
 
 
 
 
 
27
  # Create Chroma vector store for API embeddings
28
  api_db = Chroma.from_documents(vdocuments, api_hf_embeddings, collection_name="api-collection")
29
 
 
24
  text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
25
  vdocuments = text_splitter.split_documents(documents)
26
 
27
+ # Add these lines before creating the Chroma vector store
28
+ print("Length of embeddings: %s", len(embeddings))
29
+ print("Length of documents: %s", len(documents))
30
+ print("Length of vdocuments: %s", len(vdocuments))
31
+
32
  # Create Chroma vector store for API embeddings
33
  api_db = Chroma.from_documents(vdocuments, api_hf_embeddings, collection_name="api-collection")
34