This commit is contained in:
itqop 2025-07-19 17:25:13 +03:00
parent a26c19a80a
commit 52931caf3c
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ def verify_admin_token(authorization: Optional[str] = Header(None)):
@router.post("/ingest") @router.post("/ingest")
async def trigger_ingest(recreate: bool = False, _: bool = Depends(verify_admin_token)): async def trigger_ingest(recreate: bool = False, _: bool = Depends(verify_admin_token)):
try: try:
data_dir = "articles_konsol_pro" data_dir = "/app/data"
platform_file = "data/platform_overview.md" platform_file = "/app/data/platform_overview.md"
persist_dir = settings.chroma_persist_dir persist_dir = settings.chroma_persist_dir
if not os.path.exists(data_dir): if not os.path.exists(data_dir):