TalatMasood commited on
Commit
420ffd6
·
1 Parent(s): 7e85abb

Updating path for chroma_db

Browse files
config/__pycache__/config.cpython-312.pyc CHANGED
Binary files a/config/__pycache__/config.cpython-312.pyc and b/config/__pycache__/config.cpython-312.pyc differ
 
config/config.py CHANGED
@@ -64,10 +64,6 @@ class Settings:
64
  }
65
  }
66
 
67
- # Vector Store Configuration
68
- CHROMA_PATH = os.getenv('CHROMA_PATH', './chroma_db')
69
- # CHROMA_PATH = os.getenv('CHROMA_PATH', os.path.join(os.path.dirname(__file__), 'data', 'chroma_db'))
70
-
71
  # Feedback Configuration
72
  MAX_RATING = int(os.getenv('MAX_RATING', '5'))
73
 
@@ -77,6 +73,11 @@ class Settings:
77
  # Uploads directory for storing uploaded files
78
  UPLOADS_DIR = os.getenv('UPLOADS_DIR', '/home/user/app/uploads')
79
 
 
 
 
 
 
80
  # Application Configuration
81
  DEBUG = os.getenv('DEBUG', 'False') == 'True'
82
 
 
64
  }
65
  }
66
 
 
 
 
 
67
  # Feedback Configuration
68
  MAX_RATING = int(os.getenv('MAX_RATING', '5'))
69
 
 
73
  # Uploads directory for storing uploaded files
74
  UPLOADS_DIR = os.getenv('UPLOADS_DIR', '/home/user/app/uploads')
75
 
76
+ # Vector Store Configuration
77
+ # CHROMA_PATH = os.getenv('CHROMA_PATH', './chroma_db')
78
+ CHROMA_PATH = os.getenv('CHROMA_PATH', '/home/user/app/chroma_db')
79
+ # CHROMA_PATH = os.getenv('CHROMA_PATH', os.path.join(os.path.dirname(__file__), 'data', 'chroma_db'))
80
+
81
  # Application Configuration
82
  DEBUG = os.getenv('DEBUG', 'False') == 'True'
83
 
src/__pycache__/main.cpython-312.pyc CHANGED
Binary files a/src/__pycache__/main.cpython-312.pyc and b/src/__pycache__/main.cpython-312.pyc differ
 
src/implementations/__pycache__/document_service.cpython-312.pyc CHANGED
Binary files a/src/implementations/__pycache__/document_service.cpython-312.pyc and b/src/implementations/__pycache__/document_service.cpython-312.pyc differ
 
src/main.py CHANGED
@@ -76,7 +76,7 @@ mongodb = MongoDBStore(settings.MONGODB_URI)
76
  UPLOADS_DIR = Path(settings.UPLOADS_DIR)
77
  UPLOADS_DIR.mkdir(parents=True, exist_ok=True)
78
 
79
- chroma_path = Path(settings.CHROMA_PATH).resolve()
80
  try:
81
  chroma_path.mkdir(parents=True, exist_ok=True)
82
  print(f"ChromaDB directory created at: {chroma_path}")
 
76
  UPLOADS_DIR = Path(settings.UPLOADS_DIR)
77
  UPLOADS_DIR.mkdir(parents=True, exist_ok=True)
78
 
79
+ chroma_path = Path(settings.CHROMA_PATH)
80
  try:
81
  chroma_path.mkdir(parents=True, exist_ok=True)
82
  print(f"ChromaDB directory created at: {chroma_path}")
src/vectorstores/__pycache__/chroma_vectorstore.cpython-312.pyc CHANGED
Binary files a/src/vectorstores/__pycache__/chroma_vectorstore.cpython-312.pyc and b/src/vectorstores/__pycache__/chroma_vectorstore.cpython-312.pyc differ