jarif commited on
Commit
4ad8654
·
verified ·
1 Parent(s): 5f44a6e

Update ingest.py

Browse files
Files changed (1) hide show
  1. ingest.py +3 -4
ingest.py CHANGED
@@ -10,11 +10,10 @@ logging.basicConfig(level=logging.INFO)
10
  logger = logging.getLogger(__name__)
11
 
12
  def create_vector_store():
13
- # Ensure the directory exists
14
  persist_directory = "./chroma_db"
15
- if not os.path.exists(persist_directory):
16
- os.makedirs(persist_directory)
17
- logger.info(f"Created directory '{persist_directory}'")
18
 
19
  documents = []
20
  docs_dir = "docs"
 
10
  logger = logging.getLogger(__name__)
11
 
12
  def create_vector_store():
13
+ # Directory to store the vector data
14
  persist_directory = "./chroma_db"
15
+ os.makedirs(persist_directory, exist_ok=True)
16
+ logger.info(f"Directory '{persist_directory}' created or already exists.")
 
17
 
18
  documents = []
19
  docs_dir = "docs"