Spaces:
Sleeping
Sleeping
Commit History
-
Give every module one definition of the data directoryβ
Donne120 +1: Claude Opus 5Three modules worked out where to put files independently and disagreed. retrieval_engine.py honoured the DATA_DIR environment variable β but only when DEPLOYMENT_ENV was "huggingface". document_processor.py and prompt_engine/templates.py hardcoded Path("./data") and ignored it. Nothing sets DATA_DIR in production, so all three resolved to the same directory by coincidence and the split was invisible. Set it β which is the obvious thing to do when mounting persistent storage during the AWS migration β and uploads write to ./data while retrieval searches somewhere else. Nothing raises: the upload reports success and the document simply never becomes answerable. paths.py now owns DATA_DIR, DOCUMENTS_DIR, METADATA_FILE, VECTOR_DB_DIR, PROMPTS_DIR and ALU_BRAIN_DIR; the three modules import from it. Also removed retrieval_engine's DEPLOYMENT_ENV branch, whose non-Hugging-Face path preferred ./backend/data when it existed β verified it does not exist in this repo, so that branch never ranβ¦c8527f1 -
Remove the orphaned nyptho package and unwired capability modulesβ
Donne120 +1: Claude Opus 5Roughly 2,400 lines that no code path reaches. nyptho/ (1,129 lines, untouched since April 2025). The only imports of it anywhere in the repo are from inside itself. Its apparent consumer, prompt_engine/nyptho_integration.py, does not import it at all β it is self-contained β and main.py assigned the resulting object to a variable that is never read afterwards. Removed the package, the dead init block and its now-unused import; that left nyptho_integration.py itself with no importer, so it goes too. enhanced_capabilities: code_templates.py (1,123 lines), conversation_handler.py, general_qa.py, web_search.py. Grep appeared to show references, but they were false positives β a `conversation_handler` *variable* built from a different class, and the string literal "web_search" used as a routing key. No import statement for any of these exists anywhere. Verified after removal: app imports cleanly with 72 routes β the same count as before β and the full suite passes (80 tests). The pre-exβ¦afa0205
-
Improve: Make responses more concise, reduce emoji spam, better prompts
dbbfc0c
-
best move
Donne120f4cfd3f