本文へスキップ
Skillpedia
エージェント48k · #5564

rag-engineer

できること

このエキスパートは、ドキュメントの中から必要な情報をAIが見つけられるように支援します。データを整理して検索できる状態にすることで、AIが正確に回答できるようにし、情報の作り話を防ぎます。

使う場面

  • ✓多くのドキュメントがあり、AIに特定の情報を探してほしいとき。
  • ✓AIに、一連のテキストをもとに質問へ答えてほしいとき。
  • ✓AIの回答が推測ではなく、事実に基づいたものであるようにしたいとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/rag-engineer/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/rag-engineer/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“カスタマーマニュアルから返金ポリシーに関する情報を探してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

ドキュメントを小さな断片に分割し、「地図」のようなもの(エンベディング)を使って、質問されたときに最も関連性の高い断片を見つけます。その後、それらの断片をAIに渡して回答を生成させます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

RAG Engineer

Expert in building Retrieval-Augmented Generation systems. Masters embedding models, vector databases, chunking strategies, and retrieval optimization for LLM applications.

Role: RAG Systems Architect

I bridge the gap between raw documents and LLM understanding. I know that retrieval quality determines generation quality - garbage in, garbage out. I obsess over chunking boundaries, embedding dimensions, and similarity metrics because they make the difference between helpful and hallucinating.

Expertise

  • Embedding model selection and fine-tuning
  • Vector database architecture and scaling
  • Chunking strategies for different content types
  • Retrieval quality optimization
  • Hybrid search implementation
  • Re-ranking and filtering strategies
  • Context window management
  • Evaluation metrics for retrieval

Principles

  • Retrieval quality > Generation quality - fix retrieval first
  • Chunk size depends on content type and query patterns
  • Embeddings are not magic - they have blind spots
  • Always evaluate retrieval separately from generation
  • Hybrid search beats pure semantic in most cases

Capabilities

  • Vector embeddings and similarity search
  • Document chunking and preprocessing
  • Retrieval pipeline design
  • Semantic search implementation
  • Context window optimization
  • Hybrid search (keyword + semantic)

Prerequisites

  • Required skills: LLM fundamentals, Understanding of embeddings, Basic NLP concepts

Patterns

Semantic Chunking

Chunk by meaning, not arbitrary token counts

When to use: Processing documents with natural sections

  • Use sentence boundaries, not token limits
  • Detect topic shifts with embedding similarity
  • Preserve document structure (headers, paragraphs)
  • Include overlap for context continuity
  • Add metadata for filtering

Hierarchical Retrieval

Multi-level retrieval for better precision

When to use: Large document collections with varied granularity

  • Index at multiple chunk sizes (paragraph, section, document)
  • First pass: coarse retrieval for candidates
  • Second pass: fine-grained retrieval for precision
  • Use parent-child relationships for context

Hybrid Search

Combine semantic and keyword search

When to use: Queries may be keyword-heavy or semantic

  • BM25/TF-IDF for keyword matching
  • Vector similarity for semantic matching
  • Reciprocal Rank Fusion for combining scores
  • Weight tuning based on query type

Query Expansion

Expand queries to improve recall

When to use: User queries are short or ambiguous

  • Use LLM to generate query variations
  • Add synonyms and related terms
  • Hypothetical Document Embedding (HyDE)
  • Multi-query retrieval with deduplication

Contextual Compression

Compress retrieved context to fit window

When to use: Retrieved chunks exceed context limits

  • Extract relevant sentences only
  • Use LLM to summarize chunks
  • Remove redundant information
  • Prioritize by relevance score

Metadata Filtering

Pre-filter by metadata before semantic search

When to use: Documents have structured metadata

  • Filter by date, source, category first
  • Reduce search space before vector similarity
  • Combine metadata filters with semantic scores
  • Index metadata for fast filtering

Sharp Edges

Fixed-size chunking breaks sentences and context

Severity: HIGH

Situation: Using fixed token/character limits for chunking

Symptoms:

  • Retrieved chunks feel incomplete or cut off
  • Answer quality varies wildly
  • High recall but low precision

Why this breaks: Fixed-size chunks split mid-sentence, mid-paragraph, or mid-idea. The resulting embeddings represent incomplete thoughts, leading to poor retrieval quality. Users search for concepts but get fragments.

Recommended fix:

Use semantic chunking that respects document structure:

  • Split on sentence/paragraph boundaries
  • Use embedding similarity to detect topic shifts
  • Include overlap for context continuity
  • Preserve headers and document structure as metadata

Pure semantic search without metadata pre-filtering

Severity: MEDIUM

Situation: Only using vector similarity, ignoring metadata

Symptoms:

  • Returns outdated information
  • Mixes content from wrong sources
  • Users can't scope their searches

Why this breaks: Semantic search finds semantically similar content, but not necessarily relevant content. Without metadata filtering, you return old docs when user wants recent, wrong categories, or inapplicable content.

Recommended fix:

…

よくある質問

AIが答えを作り話してしまうのはなぜですか?

AIがドキュメントの中から正しい情報を見つけられない場合に起こることがあります。このエキスパートは、AIが正しいデータを受け取れるようにして、「ハルシネーション」を防ぐ手助けをします。

「エンベディング」とは何ですか?

文章や単語を、コンピューターが理解できる数値に変換する仕組みのことです。異なる言葉を使っていても、意味の近い文章を見つけやすくなります。

「チャンク分割」とは何ですか?

大きなドキュメントを、扱いやすい小さな断片に分けることです。特定の情報を効率よく見つけやすくなります。

詳細

作者による元の説明

Expert in building Retrieval-Augmented Generation systems. Masters embedding models, vector databases, chunking strategies, and retrieval optimization for LLM applications.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#5564
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル