{"prefix":"/rag","title":"RAG 문서 질의응답","routes":[{"path":"/rag","methods":["GET"],"name":"RAG 문서 질의응답","summary":"RAG 사용자 화면","description":"PDF·텍스트 문서를 올려 벡터 검색과 LLM 으로 근거 있는 답변을 받는 문서 질의응답 도구","kind":"ui","operation_id":"RAG_문서_질의응답_rag_get","docs_anchor":null,"openable":false},{"path":"/rag/status","methods":["GET"],"name":"rag_status","summary":"RAG 상태 조회","description":"DB·pgvector·임베딩 모델·LLM 구성과 색인 통계를 조회합니다.","kind":"api","operation_id":"rag_status_rag_status_get","docs_anchor":"/docs#/RAG/rag_status_rag_status_get","openable":true},{"path":"/rag/routes","methods":["GET"],"name":"rag_routes","summary":"RAG 라우터 정보","description":"main.py 에 등록된 RAG 라우트 목록(경로·메서드·설명)을 조회합니다.","kind":"api","operation_id":"rag_routes_rag_routes_get","docs_anchor":"/docs#/RAG/rag_routes_rag_routes_get","openable":true},{"path":"/rag/documents","methods":["GET"],"name":"list_documents","summary":"문서 목록","description":"색인된 문서 목록을 최신순으로 조회합니다.","kind":"api","operation_id":"list_documents_rag_documents_get","docs_anchor":"/docs#/RAG/list_documents_rag_documents_get","openable":true},{"path":"/rag/documents","methods":["POST"],"name":"upload_documents","summary":"문서 업로드·색인","description":"PDF·TXT·MD 파일을 업로드하면 텍스트 추출 → 청크 분할 → 로컬 임베딩 → pgvector 저장까지 수행합니다.","kind":"api","operation_id":"upload_documents_rag_documents_post","docs_anchor":"/docs#/RAG/upload_documents_rag_documents_post","openable":false},{"path":"/rag/documents/{document_id}","methods":["GET"],"name":"get_document","summary":"문서 상세","description":"문서 메타데이터를 조회합니다.","kind":"api","operation_id":"get_document_rag_documents__document_id__get","docs_anchor":"/docs#/RAG/get_document_rag_documents__document_id__get","openable":false},{"path":"/rag/documents/{document_id}/chunks","methods":["GET"],"name":"get_document_chunks","summary":"문서 청크 조회","description":"문서가 분할된 청크(페이지·토큰 수·본문)를 순서대로 조회합니다.","kind":"api","operation_id":"get_document_chunks_rag_documents__document_id__chunks_get","docs_anchor":"/docs#/RAG/get_document_chunks_rag_documents__document_id__chunks_get","openable":false},{"path":"/rag/documents/{document_id}","methods":["DELETE"],"name":"delete_document","summary":"문서 삭제","description":"문서와 해당 청크·임베딩을 삭제합니다.","kind":"api","operation_id":"delete_document_rag_documents__document_id__delete","docs_anchor":"/docs#/RAG/delete_document_rag_documents__document_id__delete","openable":false},{"path":"/rag/documents","methods":["DELETE"],"name":"delete_all_documents","summary":"전체 문서 삭제","description":"색인된 모든 문서·청크·임베딩을 삭제합니다.","kind":"api","operation_id":"delete_all_documents_rag_documents_delete","docs_anchor":"/docs#/RAG/delete_all_documents_rag_documents_delete","openable":false},{"path":"/rag/query","methods":["POST"],"name":"query","summary":"질의응답","description":"질문을 임베딩해 관련 청크를 검색하고, LLM 이 출처 번호와 함께 Markdown 답변을 생성합니다.","kind":"api","operation_id":"query_rag_query_post","docs_anchor":"/docs#/RAG/query_rag_query_post","openable":false}]}