legco_ai_assistant/backend/app/routers
Woody b48c23001e fix(backend): preserve original filename in chunk metadata instead of temp file name
When uploading files, the backend passes them through NamedTemporaryFile, causing os.path.basename to return temp names like 'tmp90i7xqa8.pdf'. Added original_filename parameter to extract_metadata() so the actual upload filename is stored.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-04-24 10:14:58 +08:00
..
__init__.py feat: Phase 1.1 project setup with config, database, and models 2026-04-22 16:13:52 +08:00
documents.py feat(backend): add documents CRUD endpoints and tests 2026-04-23 19:02:28 +08:00
ingest.py fix(backend): preserve original filename in chunk metadata instead of temp file name 2026-04-24 10:14:58 +08:00
query.py refactor(backend): update ingest and query routers 2026-04-23 13:26:32 +08:00