Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

txtai

> 数据库
Open source

All-in-one AI framework for semantic search, LLM orchestration and language model workflows

12.8K stars0 likes0 views
WebsiteGitHub

About

All-in-one AI framework for semantic search, LLM orchestration and language model workflows

All-in-one AI framework

</a>
<a href="https://github.com/neuml/txtai">
    
</a>
<a href="https://github.com/neuml/txtai/issues">
    
</a>
<a href="https://join.slack.com/t/txtai/shared_invite/zt-37c1zfijp-Y57wMty6YOx_hyIHEQvQJA">
    
</a>
<a href="https://github.com/neuml/txtai/actions?query=workflow%3Abuild">
    
</a>
<a href="https://coveralls.io/github/neuml/txtai?branch=master">
    
</a>

txtai is an all-in-one AI framework for semantic search, LLM orchestration and language model workflows.

The key component of txtai is an embeddings database, which is a union of vector indexes (sparse and dense), graph networks and relational databases.

This foundation enables vector search and/or serves as a powerful knowledge source for large language model (LLM) applications.

Build autonomous agents, retrieval augmented generation (RAG) processes, multi-model workflows and more.

Summary of txtai features:

  • Vector search with SQL, object storage, topic modeling, graph analysis and multimodal indexing
  • Create embeddings for text, documents, audio, images and video
  • Pipelines powered by language models that run LLM prompts, question-answering, labeling, transcription, translation, summarization and more
  • ↪️️ Workflows to join pipelines together and aggregate business logic. txtai processes can be simple microservices or multi-model workflows.
  • Agents that intelligently connect embeddings, pipelines, workflows and other agents together to autonomously solve complex problems
  • ⚙️ Web and Model Context Protocol (MCP) APIs. Bindings available for JavaScript, Java, Rust and Go.
  • Batteries included with defaults to get up and running fast
  • ☁️ Run local or scale out with container orchestration

txtai is built with Python 3.10+, Hugging Face Transformers, Sentence Transformers and FastAPI. txtai is open-source under an Apache 2.0 license.

[!NOTE]

NeuML is the company behind txtai and we provide AI consulting services around our stack. Schedule a meeting or send a message to learn more.

We're also building an easy and secure way to run hosted txtai applications with txtai.cloud.

Why txtai?

New vector databases, LLM frameworks and everything in between are sprouting up daily. Why build with txtai?

  • Up and running in minutes with pip or Docker
python
# Get started in a couple lines
import txtai

embeddings = txtai.Embeddings()
embeddings.index(["Correct", "Not what we hoped"])
embeddings.search("positive", 1)
#[(0, 0.29862046241760254)]
  • Built-in API makes it easy to develop applications using your programming language of choice
yaml
# app.yml
embeddings:
    path: sentence-transformers/all-MiniLM-L6-v2
bash
CONFIG=app.yml uvicorn "txtai.api:app"
curl -X GET "http://localhost:8000/search?query=positive"
  • Run local - no need to ship data off to disparate remote services
  • Work with micromodels all the way up to large language models (LLMs)
  • Low footprint - install additional dependencies and scale up when needed
  • Learn by example - notebooks cover all available functionality

Use Cases

The following sections introduce common txtai use cases. A comprehensive set of over 70 example notebooks and applications are also available.

Semantic Search

Build semantic/similarity/vector/neural search applications.

Traditional search systems use keywords to find data. Semantic search has an understanding of natural language and identifies results that have the same meaning, not necessarily the same keywords.

Get started with the following examples.

Notebook Description
Introducing txtai ▶️ Overview of the functionality provided by txtai
Similarity search with images Embed images and text into the same space for search
Build a QA database Question matching with semantic search
Semantic Graphs Explore topics, data connectivity and run network analysis

LLM Orchestration

Autonomous agents, retrieval augmented generation (RAG), chat with your data, pipelines and workflows that interface with large language models (LLMs).

See below to learn more.

Notebook Description
Prompt templates and task chains Build model prompts and connect tasks together with workflows
Integrate LLM frameworks Integrate llama.cpp, LiteLLM and custom generation frameworks
Build knowledge graphs with LLMs Build knowledge graphs with LLM-driven entity extraction
Parsing the stars with txtai Explore an astronomical knowledge graph of known stars, planets, galaxies

Agents

Agents connect embeddings, pipelines, workflows and other agents together to autonomously solve complex problems.

txtai agents are built on top of the smolagents framework. This supports all LLMs txtai supports (Hugging Face, llama.cpp, OpenAI / Claude / AWS Bedrock via LiteLLM). Agent prompting with agents.md and skill.md are also supported.

Check out this Agent Quickstart Example. Additional examples are listed below.

Notebook Description
Granting autonomy to agents Agents that iteratively solve problems as they see fit
TxtAI got skills Integrate skill.md files with your agent
Agent Tools ▶️ Learn about the txtai agent toolkit
Analyzing LinkedIn Company Posts with Graphs and Agents Exploring how to improve social media engagement with AI

Retrieval augmented generation

Retrieval augmented generation (RAG) reduces the risk of LLM hallucinations by constraining the output with a knowledge base as context. RAG is commonly used to "chat with your data".

Check out this RAG Quickstart Example. Additional examples are listed below.

Notebook Description
Build RAG pipelines with txtai ▶️ Guide on retrieval augmented generation including how to create citations
RAG is more than Vector Search Context retrieval via Web, SQL and other sources
GraphRAG with Wikipedia and GPT OSS Deep graph search powered RAG
Speech to Speech RAG ▶️ Full cycle speech to speech workflow with RAG

Language Model Workflows

Language model workflows, also known as semantic workflows, connect language models together to build intelligent applications.

While LLMs are powerful, there are plenty of smaller, more specialized models that work better and faster for specific tasks. This includes models for extractive question-answering, automatic summarization, text-to-speech, transcription and translation.

Check out this Workflow Quickstart Example. Additional examples are listed below.

Notebook Description
Run pipeline workflows ▶️ Simple yet powerful constructs to efficiently process data
Building abstractive text summaries Run abstractive text summarization [](https:/

Issues· 21 open

View all issuesOpen on GitHub
  • #1276

    Add a token store for multivector rescoring

    Updated Sep 28, 2026
  • #1281

    SQLite binary ANN search returns zero or negative scores for similar vectors

    Updated Sep 28, 2026
  • #1280

    Add additional Sparse ANN stores

    Updated Sep 26, 2026
  • #1278

    Negative ANN delete IDs remove unrelated vectors in NumPy and Torch

    Updated Sep 26, 2026
  • #1274

    Keyword scoring loses document ID types after saving and loading

    Updated Sep 25, 2026
  • #1271

    Multi-action Tasks exhaust iterator inputs and lose streamed workflow results

    Updated Sep 24, 2026
  • #1265

    HFTrainer fails with pandas DataFrames (pandas >= 2.1 DataFrame.map is mistaken for a Hugging Face dataset)

    Updated Sep 24, 2026
  • #1263

    QA training labels spans without the answer as [SEP] instead of the CLS token

    Updated Sep 24, 2026
  • #1246

    IVFSparse: documented `nfeatures` setting has no effect (feature selection is overwritten)

    Updated Sep 18, 2026
  • #1244

    Add `RaBitQ` as an ANN Backend

    Updated Sep 16, 2026

> Tags

Pythonagentsaiai-agentsembeddings

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库