rag-agent

Build a RAG agent pipeline for document-grounded question answering.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/HyunjunJeon/SDS-AX-Advanced-2026-1 --skill rag-agent-hyunjunjeon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rag-agent
Source: https://github.com/HyunjunJeon/SDS-AX-Advanced-2026-1/tree/main/Day-03/advanced_study/skills/rag-agent
Command: npx skills add https://github.com/HyunjunJeon/SDS-AX-Advanced-2026-1 --skill rag-agent-hyunjunjeon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

RAG(Retrieval-Augmented Generation) 에이전트 구축을 통해 벡터 스토어에서 관련 문서를 검색하고, 문서를 청킹해 질의에 대한 근거 있는 응답을 제공하는 시스템을 구성하는 문제를 해결합니다.

Core Features & Use Cases

  • 벡터 스토어 검색 및 문서 청킹을 통한 질의 응답 파이프라인 구축
  • content_and_artifact 패턴을 사용한 응답 생성 및 근거 제시
  • 에이전트 생성 및 질의 검증과 출처 명시

Quick Start

Configure a RAG agent workflow to perform document-grounded QA using a vector store and the content_and_artifact pattern.

Frequently Asked Questions about rag-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a retrieval-augmented generation agent for document-based question answering?

To build a retrieval-augmented generation agent, you need a deterministic pipeline that covers document preparation, embedding, vector storage, search tool definition, agent creation, and query validation to return grounded responses.

How does the content_and_artifact return pattern work in a RAG agent?

The content_and_artifact return pattern works by generating an answer while simultaneously returning the retrieved document chunks as artifacts, ensuring that every response includes explicit source citations for the user.

What is the best way to integrate a vector store for document chunking and search?

The best way to integrate a vector store for document chunking is to define a search tool within the agent pipeline that retrieves relevant embedded chunks, ensuring the vector store returns content_and_artifact patterns for source tracking.

Do I need safety guardrails to ensure sources are cited in my RAG pipeline?

Yes, you need safety guardrails to ensure sources are cited in your RAG pipeline, which validates queries and enforces the return of document artifacts alongside generated content to maintain response accuracy and traceability.

Can I validate user queries deterministically before searching the vector store?

Yes, you can validate user queries deterministically before searching the vector store by incorporating a query validation step into the RAG agent pipeline, which ensures only grounded and relevant document searches are executed.

What are the limitations of using a deterministic pipeline for document QA?

The limitation of a deterministic pipeline for document QA is its strict sequential flow from document preparation to agent creation, which may lack the adaptive reasoning needed for complex, multi-step conversational queries outside the vector store scope.