> ## Documentation Index
> Fetch the complete documentation index at: https://futureagi.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Cookbooks

> Practical guides and tutorials for using Future AGI products effectively

## Getting Started

<CardGroup cols={3}>
  <Card title="Evals" href="../cookbook/cookbook10/Using-FutureAGI-Evals" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Learn how to evaluate AI model performance with Future AGI Evals
  </Card>

  <Card title="Protect" href="../cookbook/cookbook10/Using-FutureAGI-Protect" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Implement AI safeguards and protection mechanisms
  </Card>

  <Card title="Dataset" href="../cookbook/cookbook10/Using-FutureAGI-Dataset" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Work with datasets for model training and evaluation
  </Card>

  <Card title="Knowledge Base" href="../cookbook/cookbook10/Using-FutureAGI-KB" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Build and manage knowledge bases for your AI applications
  </Card>
</CardGroup>

## Integrations

<CardGroup cols={3}>
  <Card title="Portkey" href="../cookbook/cookbook11/integrate-portkey-and-futureagi" img="https://mintcdn.com/futureagi/GbSGGVWB-9yQs0gV/cookbook/images/futureagixportkey.png?fit=max&auto=format&n=GbSGGVWB-9yQs0gV&q=85&s=38bc11b16e0a622118ed8e2cde87a361" width="3840" height="2160" data-path="cookbook/images/futureagixportkey.png">
    Connect Future AGI with Portkey for enhanced capabilities
  </Card>

  <Card title="LangChain" href="../cookbook/cookbook13/Adding-Reliability-to-Your-LangChain-LangGraph-Application-with-Future AGI" img="https://mintcdn.com/futureagi/GbSGGVWB-9yQs0gV/cookbook/images/futureagixlangchain.png?fit=max&auto=format&n=GbSGGVWB-9yQs0gV&q=85&s=b705a45d41369826a79c3721f072bff9" width="3840" height="2160" data-path="cookbook/images/futureagixlangchain.png">
    Improve reliability in LangChain and LangGraph applications
  </Card>

  <Card title="LlamaIndex" href="../cookbook/cookbook14/Build-Reliable-PDF-RAG-chatbots-with-LlamaIndex-and-Future-AGI" img="https://mintcdn.com/futureagi/CyOVdBAO7rBS-3AH/cookbook/images/futureagixllamaindex.jpg?fit=max&auto=format&n=CyOVdBAO7rBS-3AH&q=85&s=1e3e81b4f5d94c56c64a50cf194a0be1" width="3840" height="2160" data-path="cookbook/images/futureagixllamaindex.jpg">
    Make LlamaIndex PDF chatbot production ready
  </Card>
</CardGroup>

## Evaluation

<CardGroup cols={3}>
  <Card title="Meeting Summarization" href="../cookbook/cookbook1/AI-Evaluation-for-Meeting-Summarization" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Evaluate the quality of AI-generated meeting summaries
  </Card>

  <Card title="AI SDR Evaluation" href="../cookbook/cookbook2/AI-Evaluation-for-AI-SDR" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Assess AI-powered sales development representative performance
  </Card>

  <Card title="AI Agent Evaluation" href="../cookbook/cookbook3/Mastering-Evaluation-of-AI-Agents" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Learn advanced techniques for evaluating AI agent performance
  </Card>
</CardGroup>

## Simulation

<CardGroup cols={3}>
  <Card title="Chat Simulation with Fix My Agent" href="../cookbook/cookbook18/fix-my-agent-and-chat-simulation" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Simulate and test AI chat agents using the Future AGI SDK
  </Card>

  <Card title="Voice Simulation with SDK" href="../cookbook/cookbook17/simulate-sdk-demo" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Test conversational voice AI agents with agent-simulate SDK
  </Card>
</CardGroup>

## Observability

<CardGroup cols={3}>
  <Card title="LangChain Chatbot" href="../cookbook/cookbook8/How-To-Implement-Observability" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Add monitoring and observability to your AI applications
  </Card>

  <Card title="Text-to-SQL Agent" href="../cookbook/cookbook12/Evaluating-Text-to-SQL-Agent-using-Future-AGI" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Evaluate the performance of text-to-SQL conversion agents
  </Card>
</CardGroup>

## RAG

<CardGroup cols={3}>
  <Card title="Experimenting Langchain RAG" href="../cookbook/cookbook5/How-to-build-and-incrementally-improve-RAG-applications-in-Langchain" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Build and improve RAG applications using LangChain
  </Card>

  <Card title="Evaluating RAG Applications" href="../cookbook/cookbook6/How-to-evaluate-RAG-Applications" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Methods for evaluating retrieval-augmented generation systems
  </Card>

  <Card title="Trustworthy RAG Chatbots" href="../cookbook/cookbook7/Creating-Trustworthy-RAGs-for-Chatbots" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Build reliable and accurate RAG-powered chatbots
  </Card>

  <Card title="Decrease Hallucinations in RAG" href="../cookbook/cookbook9/How-To-Decrease-RAG-Hallucination" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Reduce hallucinations in retrieval-augmented generation systems
  </Card>
</CardGroup>

## AI Evaluation SDK

<CardGroup cols={3}>
  <Card title="Local Metrics" href="../cookbook/ai-evaluation/local-metrics" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Catch hallucinations and contradictions locally in under one second
  </Card>

  <Card title="LLM-as-Judge" href="../cookbook/ai-evaluation/llm-judge" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Use Gemini to judge accuracy when heuristics miss paraphrases
  </Card>

  <Card title="RAG Evaluation" href="../cookbook/ai-evaluation/rag-evaluation" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Diagnose retrieval vs generation failures in your RAG pipeline
  </Card>

  <Card title="Guardrails" href="../cookbook/ai-evaluation/guardrails" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Block jailbreaks, code injection, and PII leaks in under 10ms
  </Card>

  <Card title="Streaming Safety" href="../cookbook/ai-evaluation/streaming" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Cut off toxic LLM output mid-stream with real-time monitoring
  </Card>

  <Card title="AutoEval" href="../cookbook/ai-evaluation/autoeval" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Auto-generate test pipelines from app descriptions for CI/CD
  </Card>

  <Card title="Feedback Loop" href="../cookbook/ai-evaluation/feedback-loop" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Teach your LLM judge from past mistakes with ChromaDB feedback
  </Card>

  <Card title="Multimodal Judge" href="../cookbook/ai-evaluation/multimodal-judge" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Judge images and audio alongside text with Gemini vision
  </Card>
</CardGroup>

## Optimization

<CardGroup cols={3}>
  <Card title="End-to-End Prompt Optimization" href="../cookbook/optimization/end-to-end-prompt-optimization" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Optimize prompts using the Future AGI platform
  </Card>

  <Card title="Basic Prompt Optimization" href="../cookbook/optimization/basic-prompt-optimization" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Optimize prompts for better performance
  </Card>

  <Card title="Evolutionary Optimization with GEPA" href="../cookbook/optimization/evolutionary-optimization-with-gepa" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Optimize prompts using an evolutionary algorithm for state-of-the-art results
  </Card>

  <Card title="Using Different Evaluation Metrics" href="../cookbook/optimization/eval-metrics-for-optimization" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Choose the right metrics for optimization workflows
  </Card>

  <Card title="Choosing the Right Optimizer" href="../cookbook/optimization/comparing-optimization-strategies" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Select the best optimization strategy for your specific use case
  </Card>

  <Card title="Using Custom Datasets for Optimization" href="../cookbook/optimization/importing-and-using-datasets" img="https://mintcdn.com/futureagi/T0dFHFFalPtKA-do/images/agi2.png?fit=max&auto=format&n=T0dFHFFalPtKA-do&q=85&s=eb05c7d059931f6fde602c7ea987ee0f" width="3072" height="2048" data-path="images/agi2.png">
    Prepare and integrate datasets from various sources for optimization
  </Card>
</CardGroup>
