A production-ready template to help you kickstart and organize your Generative AI projects with clarity and scalability in mind.
Designed to reduce chaos in early development and support long-term maintainability with proven structure and practices.
A production-ready template for building scalable Generative AI apps โ structured, maintainable, and built on real-world best practices.
๐ config/ โ YAML config for models, prompts, logging
๐ data/ โ Prompts, embeddings, and other dynamic content
๐ examples/ โ Minimal scripts to test key features
๐ notebooks/ โ Quick experiments and prototyping
๐ tests/ โ Unit, integration, and end-to-end tests
๐ src/ โ The core engine โ all logic lives here:
โโโ agents/ โ Agent classes: planner, executor, base agent
โโโ memory/ โ Short-term and long-term memory modules
โโโ pipelines/ โ Chat flows, doc processing, and task routing
โโโ retrieval/ โ Vector search and document lookup
โโโ skills/ โ Extra abilities: web search, code execution
โโโ vision_audio/ โ Multimodal processing: image and audio
โโโ prompt_engineering/โ Prompt chaining, templates, few-shot logic
โโโ llm/ โ OpenAI, Anthropic, and custom LLM routing
โโโ fallback/ โ Recovery logic when LLMs fail
โโโ guardrails/ โ PII filters, output validation, safety checks
โโโ handlers/ โ Input/output processing and error management
โโโ utils/ โ Logging, caching, rate limiting, token counting
- Track prompt versions and results
- Separate configs using YAML files
- Structure code by clear module boundaries
- Cache responses to reduce latency and cost
- Handle errors with custom exceptions
- Use notebooks for rapid testing and iteration
- Monitor API usage and set rate limits
- Keep code and docs in sync
- Clone the repo
- Install via
requirements.txt - Set up model configs
- Check sample code
- Begin in notebooks
- Use modular structure
- Test components early
- Track with version control
- Keep datasets fresh
- Monitor API usage
requirements.txtโ Package dependenciesREADME.mdโ Project overview and usageDockerfileโ Container build instructions
This project is licensed under the Apache 2.0 License.
You are free to use, modify, and distribute with minimal restriction.