fix: Correct data paths and embeddings fallback for production deployment
This commit is contained in:
+4
-4
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user