This repository has been archived on 2026-07-09 . You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Code
Clone this repository
Search code…
RAG ElasticSearch LangChain
GET /- API 정보 반환GET /docs- Swagger UIGET /redoc- ReDocPOST /query/- 질의응답 APIGET /documents/- 문서 목록 APIPOST /documents/upload- 문서 업로드 APIGET /health- 헬스체크
문서 관리 API
POST /documents/upload- 파일 업로드GET /documents/- 문서 목록 조회GET /documents/{id}- 문서 상세 조회DELETE /documents/{id}- 문서 삭제
질의응답 API
POST /query- 자연어 질의응답
시스템 API
GET /health/detailed- 상세 시스템 상태GET /admin/performance/metrics- 성능 지표GET /admin/logs- 시스템 로그
문서 업로드
curl -X POST "http://localhost:8000/documents/upload" \
-F "file=@document.pdf" \
-F "title=회사 정책" \
-F "department=인사팀" \
-F "tags=정책,규정"
질의응답
curl -X POST "http://localhost:8000/query" \
-H "Content-Type: application/json" \
-d '{
"question": "신입사원의 연차 정책은?",
"search_type": "hybrid",
"max_results": 5
}'
시스템 상태 확인
# 상세 헬스체크
curl "http://localhost:8000/health/detailed"
# 성능 메트릭
curl "http://localhost:8000/admin/performance/metrics"