Spaces:
Sleeping
Sleeping
File size: 480 Bytes
91d7875 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import os
# from dotenv import load_dotenv
from chromadb.config import Settings
# load_dotenv()
ROOT_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
# Define the folder for storing database
SOURCE_DIRECTORY = f"{ROOT_DIRECTORY}/SOURCE_DOCUMENTS"
PERSIST_DIRECTORY = f"{ROOT_DIRECTORY}/DB"
# Define the Chroma settings
CHROMA_SETTINGS = Settings(
chroma_db_impl='duckdb+parquet',
persist_directory=PERSIST_DIRECTORY,
anonymized_telemetry=False
) |