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