txtai unifies embeddings indexes, model pipelines, workflows, and agents behind a Python API and optional HTTP service.
Overview
txtai is an AI framework centered on an embeddings database that combines dense and sparse vector indexes, graphs, and relational storage. That layer powers semantic search and feeds retrieval-augmented generation, agents, and multi-step language-model workflows.
You can embed text, documents, audio, images, and video, run SQL-style vector queries, and chain pipelines for prompting, labeling, transcription, translation, summarization, and similar tasks. Workflows join pipelines with application logic, while agents connect embeddings, pipelines, workflows, and other agents using the smolagents integration and supported LLM backends.
The project targets Python 3.11 and builds on Hugging Face Transformers, Sentence Transformers, and FastAPI, with defaults aimed at quick starts and notebooks that demonstrate functionality. APIs include web and Model Context Protocol surfaces, with client bindings noted for JavaScript, Java, Rust, and Go.
Install via pip or containers, run on local hardware, or scale with orchestration when needed. A hosted offering is advertised separately, but local operation is a stated design goal so data need not leave your environment.
Key features
- Embeddings database with SQL search
- Multimodal indexing pipelines
- RAG and agent orchestration
- Workflow composition for LLM steps
- FastAPI and MCP APIs
- Hugging Face model integration
- Pip install and container runs
- Notebook examples for each area
Use cases
- Semantic search over private documents
- RAG chat with custom knowledge
- Agent automation across tools
- Multimodal embedding and retrieval