RAG Knowledge Base

•
3
•

Provides a model context protocol server for retrieval-augmented generation queries against a text-based knowledge base.

Rag-mcp is an intricate retrieval-augmented generation (RAG) system operating as a Model Context Protocol (MCP) server, designed to provide advanced querying capabilities against a textual knowledge base. It leverages PostgreSQL with the pgvector extension to store and manage text embeddings, which are generated via an OpenAI-compatible API. The system exposes distinct search modalities, including semantic, question/answer, and style-based search, enabling AI agents and clients to perform nuanced information retrieval for RAG tasks. Its architecture is built for extensibility, allowing for the integration of custom search functionalities.

Key Features

012 GitHub stars
02Extensible framework for adding custom search modalities
03Supports semantic, question/answer, and style-based search modalities
04Model Context Protocol (MCP) Server for RAG
05Integrates with OpenAI-compatible embedding APIs
06Utilizes PostgreSQL with pgvector for efficient vector embeddings storage and search

Use Cases

01Serving as a knowledge base backend for AI agents and language models
02Implementing custom retrieval-augmented generation (RAG) pipelines
03Enabling nuanced text search based on semantic meaning, Q&A, or stylistic similarity