MCPcopy
hub / github.com/pingcap/autoflow

github.com/pingcap/autoflow @0.4.1 sqlite

repository ↗ · DeepWiki ↗ · release 0.4.1 ↗
2,121 symbols 7,943 edges 616 files 107 documented · 5%
README

AutoFlow

AutoFlow

pingcap%2Fautoflow | Trendshift

Backend Docker Image Version Frontend Docker Image Version E2E Status

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
  • shadcn/ui - Design

Contributing

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

<img alt="Performance Stats of pingcap/autoflow - Last 28 days" src="https://next.ossinsight.io/widgets/official/compose-last-28-days-stats/thumbnail.png?repo_id=752946440&image_size=auto&color_scheme=light" width="655" height="auto">

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 @TiDB_Developer on Twitter.

Extension points exported contracts — how you extend this code

FormSectionContextValues (Interface)
(no doc) [1 implementers]
frontend/app/src/components/form-sections.tsx
WidgetProps (Interface)
(no doc)
frontend/packages/widget-react/src/Widget.tsx
ReadonlyNetwork (Interface)
(no doc) [1 implementers]
frontend/app/src/components/graph/network/Network.ts
WidgetInstance (Interface)
(no doc)
frontend/packages/widget-react/src/Widget.tsx
Network (Interface)
(no doc) [1 implementers]
frontend/app/src/components/graph/network/Network.ts
CopyButtonProps (Interface)
(no doc)
frontend/app/src/components/copy-button.tsx
ColumnMeta (Interface)
(no doc)
frontend/app/src/components/data-table-remote.tsx

Core symbols most depended-on inside this repo

cn
called by 275
frontend/app/src/lib/utils.ts
get
called by 118
backend/app/repositories/llm.py
requestUrl
called by 88
frontend/app/src/lib/request/url.ts
authenticationHeaders
called by 86
frontend/app/src/lib/request/authenticationHeaders.ts
add
called by 77
backend/app/rag/vector_store/tidb_vector_store.py
handleResponse
called by 68
frontend/app/src/lib/request/response-handlers.ts
must_get
called by 50
backend/app/repositories/llm.py
zodJsonDate
called by 39
frontend/app/src/lib/zod.ts

Shape

Function 999
Method 516
Class 302
Interface 187
Route 111
Enum 6

Languages

TypeScript51%
Python49%

Modules by API surface

frontend/app/src/components/graph/network/Network.ts52 symbols
backend/app/exceptions.py37 symbols
frontend/app/src/components/graph/network/NetworkRenderer.ts36 symbols
frontend/app/src/components/chat/chat-message-controller.ts30 symbols
backend/app/rag/chat.py27 symbols
frontend/app/src/components/chat/chat-controller.ts26 symbols
backend/app/repositories/knowledge_base.py26 symbols
frontend/app/src/api/evaluations.ts25 symbols
frontend/app/src/components/chat/chat-hooks.tsx24 symbols
backend/app/rag/knowledge_graph/graph_store/tidb_graph_store.py23 symbols
backend/app/api/admin_routes/knowledge_base/graph/routes.py22 symbols
backend/app/api/admin_routes/knowledge_base/routes.py20 symbols

Dependencies from manifests, versioned

@hookform/resolvers3.9.1 · 1×
@jest/globals29.7.0 · 1×
@next/third-parties15.1.0 · 1×
@playwright/test1.46.0 · 1×
@radix-ui/react-accordion1.2.1 · 1×
@radix-ui/react-alert-dialog1.1.2 · 1×
@radix-ui/react-aspect-ratio1.1.0 · 1×
@radix-ui/react-avatar1.1.1 · 1×
@radix-ui/react-checkbox1.1.2 · 1×
@radix-ui/react-collapsible1.1.1 · 1×
@radix-ui/react-context-menu2.2.2 · 1×

For agents

$ claude mcp add autoflow \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact