Spaces:
Runtime error
Runtime error
changes to app
Browse files
app.py
CHANGED
@@ -35,8 +35,7 @@ def process_documents(files, collection_name, document_retrieval, vectorstore, c
|
|
35 |
sambanova_api_key = os.environ.get('SAMBANOVA_API_KEY')
|
36 |
document_retrieval = DocumentRetrieval(sambanova_api_key)
|
37 |
_, _, text_chunks = parse_doc_universal(doc=files)
|
38 |
-
print(len(text_chunks))
|
39 |
-
print(text_chunks[0])
|
40 |
embeddings = document_retrieval.load_embedding_model()
|
41 |
collection_id = str(uuid.uuid4())
|
42 |
collection_name = f"collection_{collection_id}"
|
|
|
35 |
sambanova_api_key = os.environ.get('SAMBANOVA_API_KEY')
|
36 |
document_retrieval = DocumentRetrieval(sambanova_api_key)
|
37 |
_, _, text_chunks = parse_doc_universal(doc=files)
|
38 |
+
print(f'nb of chunks: {len(text_chunks)}')
|
|
|
39 |
embeddings = document_retrieval.load_embedding_model()
|
40 |
collection_id = str(uuid.uuid4())
|
41 |
collection_name = f"collection_{collection_id}"
|