Getting Started • Questions • Bug Reporting • Contributing
Are you ready to cook? 🚀 This is a collection of example code and guides for Groq API for you to explore. To run these examples, you'll need a Groq API key that you can get for free by creating an account here.
Join our developer community on Discord where we discuss useful tools, share guidance, and collaborate with industry professionals!
Open an issue on GitHub here.
The Groq API Cookbook is community-driven and we are always looking for contributions in the forms of ideas, fixes, improvements, or suggestions! We greatly appreciate the open-source community and are committed to helping our community get good resources.
If you're interested in contributing to our cookbook, please first check out our contribution guidelines. We welcome high-quality guides and examples that will help our community and can't wait to see what you cook up! 🧑🍳
If there are guides or examples that you'd like to see in the future, feel free to make a suggestion here.
- Content Filtering with Llama Guard: Learn how to use Llama Guard to help prevent abuse and engagement with inappropriate content.
- eCommerce Function Calling: Learn how to use function calling with LLMs powered by Groq to create orders and get prices on products.
- SQL Function Calling: Learn how to use function calling with AI to run SQL queries.
- Stock Market Function Calling: Learn how to use function calling with AI to parse stock market data.
- Parallel Tool Use: Learn how to use function calling with AI to use multiple tools at the same time.
- Benchmarking RAG with Langchain: Learn how to benchmark a RAG pipeline with Llama3 and LangChain.
- Presidential Speeches RAG: Learn how to use RAG to find relevant presidential speeches from input text.
- Whisper and RAG: Learn how to use Whisper and RAG to semantically search through podcast audio.
- JSON Mode with Health Data: Learn how to use JSON mode to generate structured health analytics from raw data.
- Structured Output Generator: Learn how to use the Instructor library to create structured output with tools and objects. Special thanks to our GroqChamp, @S4mpl3r, for contributing!
- Multimodal Image Processing: Process and analyze images using a leading vision model.
- Gradio with Groq: Build a Gradio app powered by Groq.
- Streamlit with Groq: Build a chat app in Streamlit powered by Groq.
- Portkey with Groq: Integrate Portkey for AI observability into Groq usage.
- Composio with Groq: Integrate Composio with Groq for pre-defined actions for applications like Gmail, Slack, and GitHub.
- CrewAI with Groq: Build a mixture of agents application with CrewAI.
- E2B with Groq: Build code execution with the Code Interpreter SDK by E2B.
- JigsawStack with Groq: Learn how to automate your workflow and choose the best LLM for your prompts using JigsawStack's Prompt Engine powered by Groq.
- Langroid with Groq: Create a multi-agent system using Langroid and Groq.
- LiteLLM Proxy with Groq: Call Groq through the LiteLLM proxy.
- Toolhouse with Groq: Use Toolhouse to create simple tool integrations with Groq.
- Mixture of Agents: Create a mixture-of-agents system powered by Groq.
- Game Recap with MoA: Use a mixture-of-agents approach to generate comprehensive MLB game recaps.