petrojm commited on
Commit
cdb15e7
1 Parent(s): a9bf317

changes to app

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