feat: RAG_ALLOWED_FILE_EXTENSIONS

This commit is contained in:
Timothy Jaeryang Baek
2025-05-14 23:06:33 +04:00
parent 7e241a3904
commit a6624a4b16
3 changed files with 18 additions and 0 deletions

View File

@@ -1951,6 +1951,12 @@ RAG_FILE_MAX_SIZE = PersistentConfig(
),
)
RAG_ALLOWED_FILE_EXTENSIONS = PersistentConfig(
"RAG_ALLOWED_FILE_EXTENSIONS",
"rag.file.allowed_extensions",
os.environ.get("RAG_ALLOWED_FILE_EXTENSIONS", "").split(","),
)
RAG_EMBEDDING_ENGINE = PersistentConfig(
"RAG_EMBEDDING_ENGINE",
"rag.embedding_engine",