
moneo/laravel-rag
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
moneo/laravel-rag は https://github.com/moneo/laravel-rag. からインポートされた MCP サーバーの候補です
概要
moneo/laravel-rag は https://github.com/moneo/laravel-rag. からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
LaravelのドライバベースのRAG(Retrieval-Augmented generation)パイプラインが完成しました。 Prism PHP で提供元agnostic LLM とサポートを埋め込む
##特徴
- ドライバベースのベクターストア — pgvector (production) と sqlite-vec (local dev), [[
.env] でスワップ可能 - ブループリントマクロ — [
$table->vector(), [$table->vectorIndex()]) は、Laravelにネイティブに感じます - モデルトレイト — [[
HasVectorSearch]と[AutoEmbeds)ゼロボイラプレートの統合 - Embedding cache — SHA-256 の重複は 60-80% によって API のコストを削減します
- 攻略法 — キャラクター、センテンス、マークダウン、セマンティック・チャンカー
- フルエントRAGパイプライン — [
Rag::from(Document::class)->ask('question')] -Streaming SSE — サーバー・セント・イベントによるリアルタイム応答ストリーミング - アジェンティック RAG — 効率性評価による反復性
- ハイブリッド検索 — 分離+全文を組み合わせた相互ランク融合(RRF)
- LLMの再評価 — スコアと関連性による再注文チャンク
- 会話メモリ — 自動コンテキストの要約でスレッドされた会話 -RAG Evals — Laravel初の評価フレームワーク(Faithfulness、Relevancy、Context Recall)
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Laravel RAG
A complete, driver-based RAG (Retrieval-Augmented Generation) pipeline for Laravel. Built on Prism PHP for provider-agnostic LLM and embedding support.
Features
- Driver-based vector stores — pgvector (production) and sqlite-vec (local dev), swappable via
.env - Blueprint macros —
$table->vector(),$table->vectorIndex()feel native to Laravel - Model traits —
HasVectorSearchandAutoEmbedsfor zero-boilerplate integration - Embedding cache — SHA-256 deduplication reduces API costs by 60-80%
- Chunking strategies — Character, Sentence, Markdown, and Semantic chunkers
- Fluent RAG pipeline —
Rag::from(Document::class)->ask('question') - Streaming SSE — Real-time response streaming via Server-Sent Events
- Agentic RAG — Iterative retrieval with sufficiency evaluation
- Hybrid search — Reciprocal Rank Fusion (RRF) combining semantic + full-text
- LLM re-ranking — Score and re-order chunks by relevance
- Conversation memory — Threaded conversations with automatic context summarization
- RAG Evals — First Laravel-native evaluation framework (Faithfulness, Relevancy, Context Recall)
- MCP Server — Expose your RAG as MCP tools for Claude Desktop, Cursor, etc.
- Artisan commands —
rag:index,rag:test,rag:estimate,rag:eval,rag:mcp-serve - DevTools — Debugbar collector and Telescope watcher
- Livewire component — Drop-in `` with streaming and sources
- Filament plugin — Admin panel for documents, embeddings, and interactive testing
Requirements
- PHP 8.2+
- Laravel 11+
- Prism PHP ^0.100
Vector store (choose one):
- pgvector (recommended for production) — PostgreSQL + pgvector extension
- sqlite-vec (local dev, Docker/Linux only) — sqlite-vec
Note: sqlite-vec requires PHP compiled with SQLite extension loading support. macOS PHP (Herd, Homebrew) does not support this. Use Docker, Laravel Sail, or switch to pgvector on macOS.
Installation
composer require moneo/laravel-rag
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →