legco_ai_assistant/backend/app/services
Woody e49a68b0bd feat(prompts): Phase 3.2 — Prompt Backend (CRUD service, REST API, 33 tests)
- PromptService (services/prompt_service.py): full CRUD for 3 profiles A/B/C
  with seed template reset, validation, and sqlite3.Row access
- REST API (routers/prompts.py): 6 endpoints on /api/v1/prompts
- Pydantic models (models/prompts.py): 6 schemas
- DI wiring (dependencies.py): get_prompt_service()
- App registration (main.py): prompts router
- Mock fixture (conftest.py): mock_prompt_service
- Tests: test_phase3_prompt_service.py (22) + test_phase3_prompts_router.py (11)
- 162/166 total pass, 4 skipped, 0 fail
2026-04-25 21:11:17 +08:00
..
__init__.py feat: Phase 1.1 project setup with config, database, and models 2026-04-22 16:13:52 +08:00
embedding_client.py feat(backend): add embedding client and update LLM client 2026-04-23 13:26:43 +08:00
llm_client.py debug(backend): add LLM request/response logging for OpenRouter debugging 2026-04-23 16:28:43 +08:00
prompt_service.py feat(prompts): Phase 3.2 — Prompt Backend (CRUD service, REST API, 33 tests) 2026-04-25 21:11:17 +08:00
query_decomposer.py feat(backend): rename keywords to extracted_questions in query pipeline (sub-phase 2.3) 2026-04-24 16:23:53 +08:00
rag.py feat(backend): use [filename, page N] citation labels in RAG context (sub-phase 2.6) 2026-04-24 17:52:54 +08:00
relevance_filter.py fix(backend): extract JSON from markdown code blocks in LLM responses 2026-04-23 16:28:07 +08:00