> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://www.comet.com/docs/opik/development/optimization-runs/advanced/llms.txt. # Advanced Topics > Debug, evaluate, and monitor your LLM applications, RAG systems, and agentic workflows with comprehensive tracing, automated evaluations, and production-ready dashboards. ## Docs - [Extending Optimizers](https://www.comet.com/docs/opik/development/optimization-runs/advanced/extending_optimizers.md): Learn how to extend Opik's optimization framework with custom algorithms and contribute to the project's development. - [Custom metrics](https://www.comet.com/docs/opik/development/optimization-runs/advanced/custom_metrics.md): Build specialized metrics, integrate external models, and reuse them across optimizations. - [Custom Optimizer Prompts](https://www.comet.com/docs/opik/development/optimization-runs/advanced/prompt_customization.md): Learn how to override and customize the internal prompt templates used by Opik optimizers to add domain constraints, safety requirements, or custom formatting. - [Sampling controls](https://www.comet.com/docs/opik/development/optimization-runs/advanced/n_samples.md): Use n_samples, n_samples_minibatch, and the n parameter to trade cost for stability and exploration. - [Multiple Completions (n parameter)](https://www.comet.com/docs/opik/development/optimization-runs/advanced/multiple_completions.md): Learn how to use the n parameter to generate multiple candidate outputs per evaluation, reducing variance and improving optimization results through best-of-k selection. - [Chaining optimizers](https://www.comet.com/docs/opik/development/optimization-runs/advanced/chaining_optimizers.md): Run multiple optimizers in sequence to balance exploration and fine-tuning. - [Opik Agent Optimizer API Reference](https://www.comet.com/docs/opik/development/optimization-runs/advanced/api_reference.md): Technical SDK reference guide