legco_ai_assistant/backend/app/services
Woody e78b670baa feat(backend): use [filename, page N] citation labels in RAG context (sub-phase 2.6)
Replace numeric [1] labels with [filename, page N] format in context chunks.
Update LLM prompt to instruct inline citation using bracket labels.
Enables traceable source references in generated answers.

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

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-04-24 17:52:54 +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
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