Skip to content

Commit

Permalink
remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
kritinv committed Jan 28, 2025
1 parent 232e806 commit 96188d2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions deepeval/synthesizer/chunking/context_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def generate_contexts(
collection_path=f".vector_db/{document_name}processed_chunks_{self.chunk_size}_{self.chunk_overlap}"
if os.path.exists(collection_path):
shutil.rmtree(collection_path)
print(f"Deleted ChromaDB folder: {collection_path}")
raise ValueError(
f"Your smallest document is only sized {smallest_document_token_count} tokens."
f"Please adjust the chunk_size to no more than {suggested_chunk_size}."
Expand Down Expand Up @@ -180,7 +179,6 @@ async def a_generate_contexts(
collection_path=f".vector_db/{document_name}processed_chunks_{self.chunk_size}_{self.chunk_overlap}"
if os.path.exists(collection_path):
shutil.rmtree(collection_path)
print(f"Deleted ChromaDB folder: {collection_path}")
raise ValueError(
f"Your smallest document is only sized {smallest_document_token_count} tokens."
f"Please adjust the chunk_size to no more than {suggested_chunk_size}."
Expand Down

0 comments on commit 96188d2

Please sign in to comment.