No description
- Python 78.1%
- JavaScript 9.7%
- HTML 8.4%
- CSS 3.7%
| container | ||
| src | ||
| .dockerignore | ||
| .editorconfig | ||
| .env.example | ||
| .gitattributes | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| codebase.md | ||
| environment.yml | ||
| pyproject.toml | ||
| RAG_ElasticSearch_API.postman_collection.json | ||
| README.md | ||
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"