autoflow is a free, open source machine learning infrastructure project written in TypeScript and released under Apache-2.0. It has 2,978 GitHub stars, 193 forks and 74 open issues, and was last pushed 11 days ago. On this registry it ranks #43 of 89 tracked projects in Machine Learning Infrastructure, with 5 head-to-head comparisons available. It gained 3 stars over the last 30 tracked days.

What is autoflow?

AutoFlow is an open-source Graph RAG conversational knowledge base tool from PingCAP, built on TiDB Vector, LlamaIndex and DSPy, aimed at teams that want to turn their own documentation sites into a searchable, answer-generating chatbot.

What it is

AutoFlow is a knowledge base and conversational search application maintained by PingCAP. It combines graph RAG — retrieval over a knowledge graph rather than flat vector chunks alone — with a chat interface, so that questions are answered from ingested content instead of from a general-purpose model's memory. The project lives in the TypeScript ecosystem and is written in TypeScript, with a Next.js frontend and a separate backend service distributed as Docker images.

The concrete problem it solves is standing up a documentation question-answering system without wiring together a crawler, an embedding pipeline, a vector store and a chat UI from scratch. It replaces that assembly work: the built-in website crawler navigates official and documentation sites and scrapes sitemap URLs, the content lands in TiDB Vector storage together with chat history and JSON, and the Perplexity-style conversational search page serves answers back. TiDB is used not only as the vector store but also for chat history and analytics, so a single database backs the whole application.

Key capabilities

  • Graph RAG retrieval combining a knowledge graph with vector search, using TiDB Vector as the underlying store.
  • A Perplexity-style Conversational Search page as the primary user-facing interface.
  • A built-in website crawler that navigates official and documentation sites and scrapes sitemap URLs for ingestion.
  • An embeddable JavaScript snippet that adds the conversational search window to an existing site, typically in the bottom right corner.
  • Docker images published as tidbai/backend and tidbai/frontend on Docker Hub.
  • A stack built on LlamaIndex for retrieval orchestration and DSPy for programming foundation models rather than prompting them.
  • A frontend built with Next.js, Tailwind CSS and shadcn/ui.

Who uses it and how

  • Product and developer documentation teams that want a chat window answering questions from their own docs site rather than from a general model.
  • Teams already running TiDB or MySQL-compatible infrastructure, since the topics list includes mysql and the design consolidates vectors, chat history and analytics in one database.
  • Website owners who want search embedded into an existing page by pasting a JavaScript snippet, without rebuilding the front end around it.
  • Deployments on serverless vector storage, reflected in the serverless and vector-database topics and in the TiDB Serverless Vector Storage description.
  • Self-hosters running the full application locally or on their own hardware using the provided Docker Compose deployment.

Getting started

Deploy with Docker Compose, which the README sizes at 4 CPU cores and 8GB RAM, pulling the tidbai/backend and tidbai/frontend images. A hosted live demo runs at https://tidb.ai, with deployment documentation at https://autoflow.tidb.ai.

How it compares

No list of paid products that AutoFlow replaces is provided in the facts, and the facts name no directly comparable alternative tools in this registry. It therefore stands alone here, with LlamaIndex and DSPy appearing as libraries it is built on rather than as competitors.

When to use it — and when not to

Use it when a self-hosted, Apache-2.0 licensed conversational knowledge base over your own content is the goal, and when operating a Docker Compose stack backed by TiDB is acceptable. Do not pick it if a stable, production-frozen API matters: the README carries an explicit warning that AutoFlow is still in the early stages of development, and states that the next move is to become a Python package installable with pip install autoflow-ai. The project is under active maintenance — the most recent push recorded is 2026-04-27, with 74 open issues — but the packaging and interface are still moving, so plan for change.

project readme (upstream, from github) — read inline

AutoFlow

AutoFlow

pingcap%2Fautoflow | Trendshift

Backend Docker Image Version Frontend Docker Image Version E2E Status

[!WARNING] Autoflow is still in the early stages of development. And we are actively working on it, the next move is to make it to a python package and make it a RAG solution e.g. pip install autoflow-ai. If you have any questions or suggestions, please feel free to contact us on Discussion.

Introduction

AutoFlow is an open source graph rag (graphrag: knowledge graph rag) based knowledge base tool built on top of TiDB Vector and LlamaIndex and DSPy.

Features

  1. Perplexity-style Conversational Search page: Our platform features an advanced built-in website crawler, designed to elevate your browsing experience. This crawler effortlessly navigates official and documentation sites, ensuring comprehensive coverage and streamlined search processes through sitemap URL scraping.

Image

  1. Embeddable JavaScript Snippet: Integrate our conversational search window effortlessly into your website by copying and embedding a simple JavaScript code snippet. This widget, typically placed at the bottom right corner of your site, facilitates instant responses to product-related queries.

Image

Deploy

Tech Stack

  • TiDB – Database to store chat history, vector, json, and analytic
  • LlamaIndex - RAG framework
  • DSPy - The framework for programming—not prompting—foundation models
  • Next.js – Framework
  • Tailwind CSS – CSS framework
  • shadcn/ui - Design

Contributing

We welcome contributions from the community. If you are interested in contributing to the project, please read the Contributing Guidelines.

Performance Stats of pingcap/autoflow - Last 28 days

License

AutoFlow is open-source under the Apache License, Version 2.0. You can find it here.

Contact

You can reach out to us on Discord.

Frequently asked questions

Is autoflow free to use?

autoflow is open source under the Apache-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does autoflow do?

pingcap/autoflow is a Graph RAG based and conversational knowledge base tool built with TiDB Serverless Vector Storage. Demo: https://tidb.ai

What is autoflow written in?

autoflow is primarily written in TypeScript. Its source is publicly available at https://github.com/pingcap/autoflow, and it has 2,978 GitHub stars.