add_ai_components
Assembles an AI RAG chatbot with document upload, embedding, hybrid search, and LLM response into an existing Boot project. Supports dry-run for preview.
Instructions
공식 egovframe-ai-rag 샘플 기반 AI RAG 챗봇(문서 업로드→임베딩→하이브리드 검색→LLM 응답)을 기존 Boot 프로젝트에 조립합니다. 소스·설정(application-ai.yml 프로필)·UI·인프라를 복사하고 pom에 누락 의존성만 마커 구간으로 삽입합니다(백업 생성, 제거 시 원복). 기존 파일과 충돌하면 아무것도 쓰지 않고 거부합니다. dryRun=true로 먼저 미리볼 수 있습니다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | egovframe-ai-rag 브랜치/태그 (기본: 카탈로그 기준 브랜치) | |
| stack | Yes | AI 스택: spring-ai(Redis Stack) | langchain4j(PGVector). 상호 배타 | |
| dryRun | No | true면 복사·병합 없이 계획만 미리보기(네트워크 불필요) | |
| includeUi | No | 채팅 UI(chat.html·static) 복사 | |
| projectDir | Yes | 대상 프로젝트 디렉터리(절대경로 권장). egovframe-boot-starter-parent 기반 Boot 프로젝트 | |
| includeInfra | No | docker-compose.ai.yml·Dockerfile.ai·k8s/ai 복사 | |
| includeTests | No | 샘플 테스트 복사 |