> For the complete documentation index, see [llms.txt](https://api.farsight-ai.com/sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.farsight-ai.com/sdk/step-by-step-prompt-optimization.md).

# Step by Step Prompt Optimization

- [Introduction](https://api.farsight-ai.com/sdk/step-by-step-prompt-optimization/introduction.md): Generate and evaluate your system prompts with more manual control / oversight
- [Tutorial](https://api.farsight-ai.com/sdk/step-by-step-prompt-optimization/introduction/tutorial.md): Improve and evaluate your LLM applications with a few simple steps
- [Prompt Generation](https://api.farsight-ai.com/sdk/step-by-step-prompt-optimization/prompt-generation.md): Auto-Generate High-Quality Potential System Prompts
- [Prompt Evaluation](https://api.farsight-ai.com/sdk/step-by-step-prompt-optimization/prompt-evaluation.md): Find your optimized system prompt automatically
- [Rubric Development](https://api.farsight-ai.com/sdk/step-by-step-prompt-optimization/prompt-evaluation/rubric-development.md): Create a rubric to evaluate your best prompts


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api.farsight-ai.com/sdk/step-by-step-prompt-optimization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
