← Back to Leaderboard
Tneuml

neuml/txtai

A Python embeddings database for vector, SQL, and graph retrieval in self-hosted RAG

Engineering Health (Methodology)
A+ · 94/100
Maintenance Activity
● Updated yesterday
Latest Release
v9.15.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption19/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedMCPAPI
Total Stars
★ 13,770
24h Growth
+6
7d Growth
+33
Forks
1,098

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

neuml/txtai Star History (2020-08-09 - 2026-12-03) ALL-TIME STAR HISTORY (2020-08 – 2026-12) +13.8k in 2307d · avg +6/day 14.5k 7.3k 0 2020-08-09: ★ 12021-01-02: ★ 6212021-05-22: ★ 9522021-10-09: ★ 1,1672022-02-26: ★ 1,6312022-07-16: ★ 2,1822022-12-03: ★ 2,8652023-04-22: ★ 3,7622023-09-09: ★ 4,8042024-01-27: ★ 5,9812024-06-15: ★ 7,0562024-11-02: ★ 8,8872025-03-22: ★ 10,3742025-08-09: ★ 11,1592025-12-27: ★ 11,8202026-05-16: ★ 12,4962026-12-03: ★ 13,770 ★ 13.8k 2020-08 2023-10 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

txtai is a Python 3.11+ framework whose core is an embeddings database combining dense and sparse vector indexes, a relational layer, and graph networks. In the embedded path, an application uses txtai.Embeddings() to index a corpus and query it in-process. The retrieval layer can serve semantic search directly or supply context to RAG, with SQL and graph search available alongside vector retrieval.

The model stack uses Hugging Face Transformers and Sentence Transformers. Pipelines wrap individual model tasks; workflows compose those tasks with application logic. An optional agent layer built on smolagents can call embeddings, pipelines, and workflows. FastAPI provides the Web API service path, and a separate MCP API serves compatible clients. A search application does not need to adopt the workflow or agent layer.

Key Capabilities & Differentiators

txtai supports embeddings for text, documents, audio, images, and video. The model guide lists all-MiniLM-L6-v2 for embeddings and BLIP for image captioning. Its RAG examples cover citations, graph-backed search, and context from SQL or the web. These are useful when answers need to draw on structured records or related entities rather than only the nearest text chunks.

The release notes show several distinct retrieval options: v9.13.0 introduced LEMUR learned multi-vector retrieval and expanded late-interaction support; v9.14.0 added native ONNX vectors and RaBitQ and Zvec Sparse ANN backends; v9.15.0 added a Milvus Lite sparse ANN backend. Model pipelines also cover transcription, translation, and summarization, while integrations with llama.cpp and LiteLLM provide different routes to generation. Backend selection should be based on corpus-specific retrieval quality and operating cost, not the number of available options.

Trade-offs & Limitations

txtai and Pinecone overlap at vector retrieval, not at the application boundary. A managed vector service is a more direct fit when the application already owns ingestion and model orchestration and the main goal is to offload vector index operations. txtai is the better fit when you want to run retrieval in an application process or combine vector search, SQL, graphs, and language-model processing under your own deployment.

The broader scope means more choices to validate: model quality, index backend, enabled dependencies, and how resource-intensive tasks are isolated from search traffic. Docker packaging does not by itself establish high availability or index recovery. For a production rollout, test retrieval relevance, concurrent query behavior during index updates, and recovery from a lost instance. Apache-2.0 covers txtai itself; model licenses and provider terms require separate review.

Hardware & Deployment Guide

Install with pip install txtai in a Python 3.11+ virtual environment, adding optional dependencies for the selected backend or pipeline. For a Web API deployment, set embeddings.path in app.yml and launch CONFIG=app.yml uvicorn "txtai.api:app". Docker is an alternative for self-hosting. An offline deployment needs model artifacts available locally and must avoid external model and retrieval providers.

For production, plan where to persist model artifacts and index data. Measure indexing throughput, memory use, and query latency separately from generation; the selected model and concurrency determine whether GPU capacity is warranted. v9.15.0 added OpenAI client providers and changed SQL queries, graph search, indexing, workflows, and RAG, so test representative queries and workflows before rolling out the upgrade.

Retrieval architecture: Combines dense and sparse vector indexes, relational storage, and graph search in one embeddings database.
Retrieval backends: v9.14.0 added RaBitQ and Zvec Sparse ANN backends; v9.15.0 added a Milvus Lite sparse ANN backend.
Multimodal indexing: Supports text, documents, audio, images, and video; an image search example embeds images and text into a shared space.
RAG context: Examples cover citation handling, graph-backed retrieval, and context fetched from SQL and web sources.
Model workflows: Composes specialized tasks such as transcription and summarization with generation via integrations including llama.cpp and LiteLLM.
Integration surfaces: Runs as an embedded Python library or exposes Web and MCP APIs, with Docker as a self-hosting option.
Best For

Python teams building self-hosted knowledge search or RAG that needs vector, SQL, or graph retrieval alongside document and model workflows.

Skip If

You already have ingestion and orchestration and primarily want a managed vector index, or your production requirements depend on high availability and recovery guarantees you have not validated in a self-hosted deployment.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedMCPAPI
CONFIG=app.yml uvicorn "txtai.api:app"
curl -X GET "http://localhost:8000/search?query=positive"

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
txtai ★13.8k+33PythonApache-2.0A Python embeddings database for vector, SQL, and graph retrieval in self-hosted
LightRAG41k+110PythonMITGraph-backed RAG for cross-document retrieval and multimodal indexing
zvec16.3k+29C++Apache-2.0In-process C++ vector database for local hybrid retrieval
weaviate17k+17Go—Go vector database for filtered hybrid retrieval in production RAG stacks

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/neuml/txtai.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

neuml/txtai Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about txtai

Should I embed txtai in my application or call it as a service?

Use txtai.Embeddings() when indexing and search should run inside an existing Python process. For a service boundary, configure the embedding model under embeddings.path in app.yml and launch CONFIG=app.yml uvicorn "txtai.api:app". The Web API exposes search through /search?query=...; MCP is a separate integration option for compatible clients.

Do I need a GPU, and how should I size the host?

Start with CPU for a small pilot using the listed all-MiniLM-L6-v2 embedding model, then measure indexing throughput and query latency on representative data. Index size and retained content affect storage and memory; local generation, model choice, and concurrency can materially increase RAM or VRAM demand. There is no single hardware minimum for every txtai configuration.

Can we use txtai commercially and keep data on premises?

Yes. txtai is Apache-2.0 licensed and can be used commercially and self-hosted. Follow the license and notice requirements when redistributing it, and review the terms for each model and external provider separately. If data must stay on premises, verify the whole execution path: a locally hosted API can still call a remote model.

When should we choose txtai over Pinecone?

Compare the two at the retrieval layer, not as complete substitutes. Choose txtai when you want to self-host retrieval and combine dense or sparse search with SQL, graphs, and model workflows. Prefer a managed vector service such as Pinecone when reducing index operations is the priority and the rest of your application stack is already in place.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining neuml/txtai? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature neuml/txtai on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare