スキル一覧に戻る
eyadsibai

rag-frameworks

by eyadsibai

0🍴 0📅 2026年1月15日
GitHubで見るManusで実行

SKILL.md


name: rag-frameworks description: Use when "RAG", "retrieval augmented generation", "LangChain", "LlamaIndex", "sentence transformers", "embeddings", "document QA", "chatbot with documents", "semantic search" version: 1.0.0

RAG Frameworks

Frameworks for building retrieval-augmented generation applications.

Comparison

FrameworkBest ForLearning CurveFlexibility
LangChainAgents, chains, toolsSteeperHighest
LlamaIndexData indexing, simple RAGGentleMedium
Sentence TransformersCustom embeddingsLowHigh

LangChain

Orchestration framework for building complex LLM applications.

Core concepts:

  • Chains: Sequential operations (retrieve → prompt → generate)
  • Agents: LLM decides which tools to use
  • LCEL: Declarative pipeline syntax with | operator
  • Retrievers: Abstract interface to vector stores

Strengths: Rich ecosystem, many integrations, agent capabilities Limitations: Abstractions can be confusing, rapid API changes

Key concept: LCEL (LangChain Expression Language) for composable pipelines.


LlamaIndex

Data framework focused on connecting LLMs to external data.

Core concepts:

  • Documents → Nodes: Automatic chunking and indexing
  • Index types: Vector, keyword, tree, knowledge graph
  • Query engines: Retrieve and synthesize answers
  • Chat engines: Stateful conversation over data

Strengths: Simple API, great for document QA, data connectors Limitations: Less flexible for complex agent workflows

Key concept: "Load data, index it, query it" - simpler mental model than LangChain.


Sentence Transformers

Generate high-quality embeddings for semantic similarity.

Popular models:

ModelDimensionsQualitySpeed
all-MiniLM-L6-v2384GoodFast
all-mpnet-base-v2768BetterMedium
e5-large-v21024BestSlow

Key concept: Bi-encoder architecture - encode query and documents separately, compare with cosine similarity.


RAG Architecture Patterns

PatternDescriptionWhen to Use
Naive RAGRetrieve top-k, stuff in promptSimple QA
Parent-ChildRetrieve chunks, return parent docsContext preservation
Hybrid SearchVector + keyword searchBetter recall
Re-rankingRetrieve many, re-rank with cross-encoderHigher precision
Query ExpansionGenerate variations of queryAmbiguous queries

Decision Guide

ScenarioRecommendation
Simple document QALlamaIndex
Complex agents/toolsLangChain
Custom embedding pipelineSentence Transformers
Production RAGLangChain or custom
Quick prototypeLlamaIndex
Maximum controlBuild custom with Sentence Transformers

Resources

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です