Skip to content

[FEAT] RAG 및 LLM Explanation Stub 구현 #11

Description

@dldusgh318

📝 IssueName

RAG 및 LLM Explanation Stub 구현


📝 Description

정규화된 Finding에 대해 RAG 검색과 LLM 설명 생성 단계를 pipeline에 연결할 수 있도록 stub을 구현한다.
Milestone 2에서는 실제 pgvector/BM25 검색이나 Claude API 호출 없이 interface와 mock 결과만 구성한다.


📝 Todo

  • app/services/rag/ 패키지 생성
  • query_builder.py 추가
  • hybrid_search.py 추가
  • Finding 기반 RAG query 생성 함수 구현
  • evidence document schema 또는 dict 구조 정의
  • hybrid search stub 구현
  • app/services/llm/prompt_builder.py 추가
  • app/services/llm/explanation_generator.py 추가
  • Finding + evidence 기반 prompt 생성 interface 정의
  • mock explanation/recommendation 생성
  • Claude API key 없이도 동작하도록 구성

📝 참고 사항

실제 RAG 검색과 Claude 호출은 이후 Milestone에서 feature flag, timeout, retry 정책과 함께 구현한다.

Metadata

Metadata

Assignees

Labels

✨ FEATNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions