txtai: All-in-One AI Framework for RAG & Agents
txtai: The All-in-One AI Framework Revolutionizing Semantic Search & LLM Workflows
What is txtai?
txtai is a production-ready, open-source AI framework that unifies semantic search, LLM orchestration, autonomous agents, and language model workflows into a single powerful platform. With 12.4k GitHub stars and active development, it's the go-to solution for building intelligent applications.
Built on Python 3.10+, Hugging Face Transformers, Sentence Transformers, and FastAPI, txtai offers:
- π Vector search with SQL, graph networks, and multimodal indexing
- π Embeddings for text, audio, images, and video
- π‘ Pipelines for LLM prompts, QA, summarization, transcription
- π€ Autonomous agents powered by smolagents framework
- βοΈ Web APIs with JavaScript, Java, Rust, Go bindings
Key Features & Use Cases
1. Semantic Search & Vector Database
import txtai
embeddings = txtai.Embeddings()
embeddings.index(["Correct", "Not what we hoped"])
results = embeddings.search("positive", 1)
print(results) # [(0, 0.29862046241760254)]
Create similarity search across documents, images, and multimodal data with SQL queries and graph analysis.
2. Retrieval Augmented Generation (RAG)
Build hallucination-free LLM applications by combining your knowledge base with LLMs. txtai supports: - Classic RAG with vector search - GraphRAG with knowledge graphs - Multi-source retrieval (Web, SQL, APIs) - Speech-to-speech RAG workflows
3. Autonomous AI Agents
txtai agents connect embeddings, pipelines, and workflows to solve complex problems autonomously. Supports all major LLMs including Hugging Face, llama.cpp, OpenAI, and Claude.
4. Language Model Workflows
Chain specialized models for optimal performance: - Whisper for transcription - DistilBART for summarization - OPUS models for translation - BLIP for image captions
Production-Ready Deployment
# Install in seconds
pip install txtai
# Run API server
CONFIG=app.yml uvicorn "txtai.api:app"
# Query via REST
curl -X GET "http://localhost:8000/search?query=positive"
Scale from local development to container orchestration with Docker support and cloud deployment options.
Real-World Applications
- rag: Production RAG application
- ncoder: Open-source AI coding agent
- paperai: AI for medical/scientific papers
- annotateai: LLM-powered paper annotation
Getting Started
- Install:
pip install txtai - Explore 70+ Colab notebooks covering all features
- Recommended models:
- Embeddings:
all-MiniLM-L6-v2 - LLM:
gpt-oss-20b - Transcription:
Whisper
Why Choose txtai?
β Minutes to start - No complex setup β Local-first - Keep data private β Batteries included - 70+ examples β Scalable - Microservices to enterprise β Apache 2.0 - Commercial use friendly
Join 12.4k+ developers building the future of AI with txtai. Check out the GitHub repo and start building today!
β Star txtai on GitHub and join the Slack community for support and updates.