jaikydota/BullFlow
Self-hosted RAG and LangGraph agents for content creation and social publishing
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
BullFlow is an end-user application with separate React 19/TypeScript interfaces for users, operators, and the publishing gateway. Its Python 3.12 FastAPI backend uses SQLAlchemy 2 async and Alembic for relational persistence and migrations. A LangGraph ReAct agent streams responses over SSE and invokes tools for knowledge search, media generation, and export. Generation jobs run asynchronously, and APScheduler handles scheduled work.
MySQL stores source chunks, Milvus indexes BGE-M3 vectors, Elasticsearch 8 with IK indexes full text, Redis supports caching and rate limiting, and MinIO stores objects. At retrieval time, vector and keyword queries fan out in parallel. Results are fused with RRF by default or normalized weights, can be reranked with BGE-Reranker, and can be expanded with adjacent chunks. The separately deployable tlf_backend handles publishing and sends signed status and metrics webhooks back to the main app.
Key Capabilities & Differentiators
Retrieval can use five structured record types—company, brand, product, customer, and case study—alongside uploaded documents. Ingestion falls back from PaddleOCR to Pandoc and native parsers, then to storage without indexing when text cannot be extracted. wtpsplit provides sentence boundaries for chunking while preserving tables and code blocks. OpenCLIP adds text-to-image search, WhisperX can feed audio transcripts into document retrieval, and Ragas evaluation can tune hybrid-search weights. Source previews let reviewers inspect the retrieved passages behind a response.
The creation workflow produces illustrated articles, 1–9 images per batch, and short videos, with PDF and Word export for articles. Generation and distribution can be scheduled. The gateway exposes 17 listed destinations across 11 domestic and six overseas platforms, returns publication status by webhook, and collects daily account metrics. Role controls, tenant-scoped retrieval, usage credits, subscriptions, and invoicing support multi-client operations.
Trade-offs & Limitations
A standalone RAG app is a better operational fit when the requirement stops at internal Q&A; a dedicated social scheduler is simpler when drafts already arrive from an editorial system. BullFlow ties source assets and draft generation to publishing and billing, but operators take on more stateful services and have to keep MySQL, Milvus, and Elasticsearch aligned as content and tenant data change. Test tenant isolation across retrieval paths and verify approval controls before enabling scheduled publishing.
Local ingestion and retrieval avoid per-call model API fees, not hardware or operating costs. OpenAI-compatible generation endpoints can be self-hosted, but compatibility with the media workflows should be tested rather than assumed. If a remote generator receives retrieved excerpts or media, those inputs leave the deployment. Social publishing separately depends on Lingjing or Composio, so the open-source gateway is not a way to eliminate provider fees, platform restrictions, or external data transfers.
Hardware & Deployment Guide
For a source deployment, plan for Python 3.12, Node.js 20+, Pandoc, and FFmpeg/FFprobe; PDF export additionally needs the WeasyPrint system libraries and suitable fonts. The root includes docker-compose.yml and docker-compose.milvus.yml. In the main Compose file, the backend loads backend/.env, runs alembic upgrade head, and only then starts uvicorn app.main:app with one worker on port 8021. The Elasticsearch IK plugin must match the Elasticsearch version exactly.
The recommended starting point is at least 16 GB of system RAM, plus several gigabytes for model files and separate data capacity for the storage services. Images can bundle retrieval models at build time. Embeddings can fall back to CPU and OCR benefits from a GPU, but the supplied Compose backend explicitly requests NVIDIA devices, so review that stanza for CPU-only hosts. Test sizing with your corpus, reranker settings, and concurrency. No GitHub release is listed; pin and validate the commit and image versions you intend to deploy.
Brand teams and agencies that need to create source-backed content from company assets, publish across supported domestic and overseas channels, and manage multiple clients in one system.
You only need document Q&A or scheduling, cannot operate the search and storage stack, or require fully offline publishing without third-party connectors.
Quick Start & Installation
cd backend python -m venv venv && source venv/bin/activate pip install -r requirements.txt alembic upgrade head python -m scripts.seed_skills # 导入 56 个内置创作技能(只需执行一次,可重复执行) uvicorn app.main:app --host 0.0.0.0 --port 8020 --reload --reload-dir app
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| BullFlow ★ | 820 | +109 | TypeScript | MIT | Self-hosted RAG and LangGraph agents for content creation and social publishing |
| n8n | 213.1k | +787 | TypeScript | — | Visual Node.js platform for self-hosted workflows and multi-step AI agents |
| TradingAgents | 124.7k | +709 | TypeScript | Apache-2.0 | A multi-agent CLI for source-cited financial research and reporting |
| paperclip | 119.3k | +1.6k | TypeScript | MIT | Self-hosted control plane for coordinating AI agents, tasks, approvals, and spen |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/jaikydota/BullFlow.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about BullFlow
Can we deploy knowledge search and content creation without social publishing?
tlf_backend through an SDK and signed webhooks. Account authorization and publishing still need Lingjing for domestic platforms or Composio for overseas platforms.Can we run without a GPU, and how should we size the host?
Does MIT let us sell a hosted or rebranded version?
When is BullFlow preferable to a standalone RAG app or a social scheduler?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy