fix: Correct data paths and embeddings fallback for production deployment

This commit is contained in:
Aherobo Ovie Victor
2025-07-07 20:49:42 +01:00
parent aaf9b7fcec
commit 762f8a8b25
4 changed files with 4147 additions and 7 deletions
+4 -4
View File
@@ -31,10 +31,10 @@ class Settings(BaseSettings):
port: int = int(os.getenv("PORT", "8000"))
debug: bool = os.getenv("DEBUG", "true").lower() == "true"
# Data Storage
raw_news_dir: str = os.getenv("RAW_NEWS_DIR", "data/raw_news")
processed_news_dir: str = os.getenv("PROCESSED_NEWS_DIR", "data/processed_news")
vector_index_path: str = os.getenv("VECTOR_INDEX_PATH", "data/news_vectors.faiss")
# Data Storage (paths relative to project root)
raw_news_dir: str = os.getenv("RAW_NEWS_DIR", "../data/raw_news")
processed_news_dir: str = os.getenv("PROCESSED_NEWS_DIR", "../data/processed_news")
vector_index_path: str = os.getenv("VECTOR_INDEX_PATH", "../data/news_vectors.faiss")
# Embedding Model
embedding_model: str = "sentence-transformers/all-MiniLM-L6-v2"