Chris4K commited on
Commit
c99439e
·
1 Parent(s): de0d88f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -29,7 +29,8 @@ vdocuments = text_splitter.split_documents(documents)
29
  print("Length of documents: %s", len(documents))
30
  print("Length of vdocuments: %s", len(vdocuments))
31
  if vdocuments:
32
- print("Length of embeddings for the first document: %s", len(vdocuments[0].get('embeddings', [])))
 
33
 
34
  # Create Chroma vector store for API embeddings
35
  api_db = Chroma.from_documents(vdocuments, api_hf_embeddings, collection_name="api-collection")
 
29
  print("Length of documents: %s", len(documents))
30
  print("Length of vdocuments: %s", len(vdocuments))
31
  if vdocuments:
32
+ first_document_embeddings = vdocuments[0].embeddings
33
+ print("Length of embeddings for the first document: %s", len(first_document_embeddings))
34
 
35
  # Create Chroma vector store for API embeddings
36
  api_db = Chroma.from_documents(vdocuments, api_hf_embeddings, collection_name="api-collection")