What is PinRAG?
PinRAG is a Retrieval-Augmented Generation (RAG) server that indexes scattered learning materials—PDFs, ebooks, GitHub repos, YouTube videos, Discord discussions, and plain notes—into a shared index. It exposes MCP tools for adding, querying, listing, and removing documents, and returns answers with citations from sources. It is built with LangChain and Chroma, and is for users of Cursor, VS Code (GitHub Copilot), or any MCP-capable assistant.
How to use PinRAG?
Install uv and ensure uvx is on your PATH, then add PinRAG as an MCP server in your editor's mcp.json file with the command uvx --refresh pinrag and required environment variables (OPENROUTER_API_KEY, PINRAG_PERSIST_DIR). In chat, use tools like add_document_tool to index files or URLs, query_tool to ask questions, and list_documents_tool to review indexed documents.
Key features of PinRAG
- Multi-format indexing: PDFs, text, directories, Discord exports, YouTube, GitHub repos
- Optional YouTube vision enrichment (off by default)
- RAG with citations: page numbers, timestamps, file paths
- Document tags and metadata filtering for queries
- Configurable LLM providers: OpenRouter, OpenAI, Anthropic, Cerebras
- Local embeddings via Nomic (no API key needed, ~270 MB download)
Use cases of PinRAG
- Aggregate PDFs, YouTube tutorials, and GitHub code into one searchable knowledge base
- Ask questions about a GitHub codebase and get answers with file-path citations
- Index Discord chat exports and retrieve discussion context with timestamps
- Filter queries by document tag or type to focus on specific topics or sources
コメント