Watch 1
Fork 0
You've already forked rag-elasticsearch-langchain
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.

RAG ElasticSearch LangChain

  • GET / - API 정보 반환
  • GET /docs - Swagger UI
  • GET /redoc - ReDoc
  • POST /query/ - 질의응답 API
  • GET /documents/ - 문서 목록 API
  • POST /documents/upload - 문서 업로드 API
  • GET /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"