# RAGLite

> Lightweight Python toolkit for RAG using DuckDB or PostgreSQL

RAGLite is an open-source Python library designed to build Retrieval-Augmented Generation pipelines without heavy frameworks like LangChain or PyTorch. It provides hybrid vector and keyword search on DuckDB or PostgreSQL, late chunking, reranking, and adaptive retrieval. It also includes an MCP server and an optional Chainlit interface.

Website: https://github.com/superlinear-ai/raglite

## What it is for

- Build a local or server-based RAG application using DuckDB or PostgreSQL
- Expose an internal document store to Claude desktop via Model Context Protocol (MCP)
- Run hybrid vector and keyword search with late chunking and semantic splitting
- Deploy a ChatGPT-like document assistant to Slack, Teams, or the web

## Features

- DuckDB (FTS + VSS) or PostgreSQL (tsvector + pgvector) database backends
- Model support via LiteLLM and local execution through llama-cpp-python
- Semantic chunking and multi-vector late chunking embeddings
- Built-in FastMCP server for Claude desktop integration
- Hybrid keyword and vector search with reranker integration (FlashRank default)
- Optional ChatGPT-like UI via Chainlit
- Closed-form linear query adapter using orthogonal Procrustes problem solving

## Pricing

Open source

## Details

- Type: GitHub repo
- Category: [Development](https://xiry.app/topics/development.md)
- Open source: yes
- Platforms: Code library, Command line, macOS, Linux, Windows
- For: Python developers building RAG pipelines who prefer minimal dependencies over monolithic frameworks
- Alternative to: LangChain, LlamaIndex
- Tags: rag, python, duckdb, pgvector, litellm, mcp, search

## Why it was saved

- [@Sumanth_077, 9 December 2024](https://x.com/Sumanth_077/status/1866121272515784875): Configurable RAG stack (any LLM via LiteLLM, any reranker, PDF-to-Markdown ingestion, hybrid keyword+vector search) with only lightweight permissive dependencies — no PyTorch or LangChain.

## Compare

- [Alternatives to LangChain](https://xiry.app/alternatives/langchain.md)
- [Alternatives to LlamaIndex](https://xiry.app/alternatives/llamaindex.md)

## Related

- [NLWeb](https://xiry.app/resources/nlweb): Open protocols and tools for conversational website interfaces via MCP (GitHub repo, Open source)
- [Firecrawl](https://xiry.app/resources/firecrawl-1984): Turn websites and documents into clean, LLM-ready markdown or structured data. (Website, Freemium)
- [awesome-llm-apps](https://xiry.app/resources/awesome-llm-apps): Open-source collection of runnable AI agent, skill, and RAG templates (GitHub repo, Open source)
- ["Easy Mode" Open Source AI Stack](https://xiry.app/resources/easy-mode-open-source-ai-stack): An opinionated reference architecture for building full-stack open-source AI applications (Framework, Open source)
- [Composio](https://xiry.app/resources/composio): Tooling and authentication layer connecting AI agents to external applications (GitHub repo, Freemium)
- [Context+](https://xiry.app/resources/context): MCP server providing structural AST indexing and semantic navigation for coding agents (Website, Open source)

Updated 10 October 2026. Page: https://xiry.app/resources/raglite

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
