Update ingest.py
Browse files
ingest.py
CHANGED
@@ -10,11 +10,10 @@ logging.basicConfig(level=logging.INFO)
|
|
10 |
logger = logging.getLogger(__name__)
|
11 |
|
12 |
def create_vector_store():
|
13 |
-
#
|
14 |
persist_directory = "./chroma_db"
|
15 |
-
|
16 |
-
|
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"
|