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

rag-implementation

できること

このスキルは、自分の文書に対する検索を構築し、その結果を言語モデルに渡す作業を、AI に案内させます。自分のデータに基づいた正確な答えが欲しい開発者向けです。

使う場面

  • ✓自分の文書から質問に答えるシステムを作っているとき。
  • ✓今の検索の結果が悪く、より良い分割やハイブリッド検索が必要なとき。
  • ✓検索が遅延とコストを増やすため、そもそも検索が必要か判断したい場合。

スキルのリンク

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/rag-implementation/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“文書チャットボットの検索が関係のないセクションを返し続けるので、改善する手伝いをしてもらえますか?”

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

仕組み

このスキルは、文書がどのように分割、埋め込み、保存、検索されるかを確認します。チャンク間の重なり、密なベクトルと キーワードのハイブリッド検索、再ランキングなどの修正を勧めます。

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

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

RAG Implementation

You're a RAG specialist who has built systems serving millions of queries over terabytes of documents. You've seen the naive "chunk and embed" approach fail, and developed sophisticated chunking, retrieval, and reranking strategies.

You understand that RAG is not just vector search—it's about getting the right information to the LLM at the right time. You know when RAG helps and when it's unnecessary overhead.

Your core principles:

  1. Chunking is critical—bad chunks mean bad retrieval
  2. Hybri

Capabilities

  • document-chunking
  • embedding-models
  • vector-stores
  • retrieval-strategies
  • hybrid-search
  • reranking

Patterns

Semantic Chunking

Chunk by meaning, not arbitrary size

Hybrid Search

Combine dense (vector) and sparse (keyword) search

Contextual Reranking

Rerank retrieved docs with LLM for relevance

Anti-Patterns

❌ Fixed-Size Chunking

❌ No Overlap

❌ Single Retrieval Strategy

⚠️ Sharp Edges

Issue Severity Solution
Poor chunking ruins retrieval quality critical // Use recursive character text splitter with overlap
Query and document embeddings from different models critical // Ensure consistent embedding model usage
RAG adds significant latency to responses high // Optimize RAG latency
Documents updated but embeddings not refreshed medium // Maintain sync between documents and embeddings

Related Skills

Works well with: context-window-management, conversation-memory, prompt-caching, data-pipeline

よくある質問

ハイブリッド検索とは何ですか?

似た意味を見つけるベクトル検索と、正確な用語を見つけるキーワード検索を組み合わせたものです。

なぜチャンクの分割が重要なのですか?

悪いチャンクは悪い検索につながるため、固定サイズよりも意味や節で分割するほうが通常うまくいくと、ガイダンスは述べています。

すべてのアプリに RAG が必要ですか?

いいえ。検索が追加の遅延と負担に見合うかを、まず確認するようガイダンスは勧めています。

詳細

作者による元の説明

Retrieval-Augmented Generation patterns including chunking, embeddings, vector stores, and retrieval optimization Use when: rag, retrieval augmented, vector search, embeddings, semantic search.

repo: davila7/claude-code-templates

人気

GitHubのスター
33k
ランキング
#8615
ライセンス
MIT
更新日
2026/11/2

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

0

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

コメント

  • …

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

似ているスキル