Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Bee β€” the open-source AI knowledge hive

🐝 Bee

The open-source AI knowledge hive.

Learn AI. Build AI. Share AI.

A community-driven collection of modern AI engineering resources β€” theory, runnable examples, production patterns, and learning paths. Think MDN for AI Engineering: freeCodeCamp + Awesome-AI + the OpenAI Cookbook, in one repository.

Quick Start Learning Paths Contribute

Docs License Code License PRs Welcome Code of Conduct Made with


Note

Bee is not an AI application. It is a knowledge base β€” a curated, beautifully organized library of everything a developer needs to learn and build with AI.

πŸ“– Table of Contents

🍯 Why Bee?

AI engineering knowledge is scattered across blog posts that rot, framework docs that assume you already know the concepts, and tutorials that don't run. Bee gathers the good stuff in one place and holds it to a single quality bar:

  • 🧠 Concepts explained from first principles β€” you'll understand why, not just how.
  • πŸƒ Every code example runs β€” each lives in its own folder with dependencies and a README.
  • πŸ—ΊοΈ Structured learning paths β€” go from "never called an LLM" to "shipping agents."
  • 🏭 Production patterns, not toys β€” evaluation, security, cost, observability, deployment.
  • 🎨 Diagrams everywhere β€” Mermaid diagrams make architectures click.
  • 🌍 Community-owned β€” designed for hundreds of contributors from day one.

🧰 What's Inside

🧠 Foundations

  • How LLMs work
  • Transformers & attention
  • Tokenization
  • Embeddings
  • Context windows

✍️ Building Blocks

  • Prompt engineering
  • System prompts
  • Structured outputs / JSON mode
  • Function & tool calling
  • Streaming

πŸ”Ž Retrieval (RAG)

  • Chunking strategies
  • Vector databases
  • Hybrid search
  • Reranking
  • RAG evaluation

πŸ€– Agents

  • Agent fundamentals
  • Planning & reflection
  • Memory
  • Multi-agent systems
  • MCP Β· LangGraph Β· CrewAI

πŸ–ΌοΈ Multimodal

  • Vision models & OCR
  • Speech recognition
  • Text-to-speech
  • Image generation

🏭 Production

  • Evaluation & guardrails
  • Security & safety
  • Deployment (Docker/K8s)
  • Observability
  • Inference optimization

πŸš€ Quick Start

Bee is a reading-and-doing repository. There are three ways to use it:

1. Browse on GitHub β€” every folder has a README.md. Start with docs/.

2. Read it as a website (nicer search, dark mode, diagrams):

git clone https://github.com/bee-ai-labs/bee.git
cd bee
pip install -r docs/requirements.txt
mkdocs serve          # open http://127.0.0.1:8000

3. Run an example β€” each example is self-contained:

cd examples/01-chatbot
cp .env.example .env          # add your API key
uv sync                       # or: pip install -e .
python -m app                 # run it

Tip

New to AI engineering? Don't read randomly β€” follow a Learning Path. It sequences the content so each concept builds on the last.

πŸ—‚οΈ Repository Structure

bee/
β”œβ”€β”€ docs/               πŸ“š The knowledge base (also the MkDocs website)
β”‚   β”œβ”€β”€ concepts/          🟒 Foundations: LLMs, transformers, tokenization, embeddings
β”‚   β”œβ”€β”€ prompting/         🟑 Prompting, system prompts, structured output, tool calling
β”‚   β”œβ”€β”€ rag/               🟑 Chunking, vector DBs, hybrid search, reranking, eval
β”‚   β”œβ”€β”€ agents/            πŸ”΄ Single/multi-agent, planning, memory, MCP, LangGraph, CrewAI
β”‚   β”œβ”€β”€ vision/ speech/    πŸ–ΌοΈ Multimodal: vision, OCR, speech-to-text, TTS
β”‚   β”œβ”€β”€ evaluation/        πŸ“ Evals, benchmarks, hallucination, guardrails
β”‚   β”œβ”€β”€ security/          πŸ›‘οΈ Prompt injection, safety, auth, rate limiting
β”‚   β”œβ”€β”€ deployment/        🚒 Docker, Kubernetes, serving, scaling
β”‚   β”œβ”€β”€ mlops/             βš™οΈ CI/CD, observability, monitoring, cost
β”‚   └── learning-paths/    πŸ—ΊοΈ Curated sequences for each skill level
β”œβ”€β”€ examples/           πŸƒ Self-contained, runnable Python projects
β”œβ”€β”€ architectures/      πŸ—οΈ Reference architectures + decision records (Mermaid)
β”œβ”€β”€ templates/          πŸ“¦ Copy-paste starters (FastAPI+LLM, RAG service, agent loop)
β”œβ”€β”€ guides/             🧭 Task-oriented how-tos ("how do I stream responses?")
β”œβ”€β”€ tutorials/          πŸ“ End-to-end walkthroughs (build X from scratch)
β”œβ”€β”€ datasets/ benchmarks/  πŸ“Š Curated data pointers + evaluation harnesses
β”œβ”€β”€ assets/             🎨 Banner, logo, brand guide, diagram sources
β”œβ”€β”€ scripts/            πŸ› οΈ Repo tooling (new-example scaffolder, link checks)
└── .github/            πŸ€– Issue/PR templates, CI workflows, automation

πŸ—ΊοΈ Learning Paths

Instead of a pile of articles, Bee sequences content into paths. Pick where you are:

Path For Starts with
🟒 AI Engineer β€” Fundamentals You can code, but LLMs are new How LLMs Work
🟑 Building with LLMs You've made API calls, want to build real features Prompt Engineering
🟑 RAG Specialist You need models to use your data RAG Overview
πŸ”΄ Agent Engineer You're building autonomous, tool-using systems Agent Fundamentals
πŸ”΄ Production & MLOps You need to ship, monitor, and scale Deployment

➑️ See all learning paths β†’

⭐ Featured Examples

Every example is a complete, runnable project with its own README, dependencies, and tests.

Example What it teaches Level
01-chatbot Streaming chat, conversation state, cost tracking 🟒
02-rag-document-qa Chunking, embeddings, retrieval, cited answers 🟑
03-research-agent Tool use, planning, multi-step reasoning πŸ”΄

➑️ Browse all examples β†’

🎯 How Content Is Organized

Every section of the knowledge base follows the same structure, so you always know what to expect:

Overview β†’ Learning Objectives β†’ Theory β†’ Practical Examples β†’ Code Snippets β†’ Diagrams β†’ Best Practices β†’ Common Mistakes β†’ Exercises β†’ References

Content is tagged by difficulty so you can meet yourself where you are:

  • 🟒 Beginner β€” assumes general programming knowledge only
  • 🟑 Intermediate β€” assumes you've built basic LLM features
  • πŸ”΄ Advanced β€” assumes production experience

🀝 Contributing

Bee is built by its community β€” and that means you. Whether you fix a typo, add a diagram, or write an entire tutorial, you're welcome here.

  1. Read the Contributing Guide (5-minute read).
  2. Find a good first issue or a [WANTED] topic in any section README.
  3. Copy the relevant _TEMPLATE/ and fill it in.
  4. Open a PR β€” our CI checks formatting, spelling, and links so you don't have to.

By participating you agree to our Code of Conduct.

πŸ“ Roadmap

Bee grows in public. See the full Roadmap and Changelog.

  • M0 β€” Foundation: structure, docs site, community & CI
  • M1 β€” Flagship knowledge: Concepts, Prompting, RAG, Agents (deep)
  • M2 β€” Runnable example fleet
  • M3 β€” Breadth: vision, speech, eval, security, deployment
  • M4 β€” Interactive notebooks & video companions

πŸ’¬ Community & Support

❓ FAQ

Is Bee affiliated with any AI company?

No. Bee is an independent, community-driven, open-source project. It uses vendor SDKs in examples but the concepts are vendor-neutral.

Which LLM provider do the examples use?

Concepts are provider-agnostic. Code examples default to the Anthropic SDK for concreteness, with notes on adapting to OpenAI, Google, Ollama, and others. You can run most examples against any provider.

Do I need a GPU?

No. Almost everything uses hosted APIs. The few local-model sections clearly say so and offer CPU-friendly alternatives.

Can I use Bee content in my own course/blog/book?

Yes β€” docs are CC-BY-4.0 (give credit) and code is MIT. See LICENSE.

How do I keep code examples from breaking as APIs change?

Each example pins its dependencies and runs in CI. See CONTRIBUTING.md for the maintenance policy.

πŸ“œ License

Bee is dual-licensed: documentation and prose under CC-BY-4.0, and all source code under the MIT License. In short β€” reuse freely, just give credit. 🐝

πŸ™ Acknowledgements

Bee stands on the shoulders of the open-source AI community and is inspired by the clarity of MDN Web Docs, the practicality of the OpenAI Cookbook, the breadth of the Awesome lists, and the welcoming ethos of freeCodeCamp.

Built with 🍯 by the Bee community.

If Bee helps you, consider giving it a ⭐ β€” it helps other developers find the hive.

Releases

Sponsor this project

Packages

Contributors

Languages