Persona prompts with Embabel and Ollama
This example shows instructions kept outside the prompt string.
The TechnicalEditor persona is a prompt contributor, a reusable fragment that Embabel adds to any model call that asks for it. The review action supplies only the task text, and the behavioral guidance comes from the contributor.
Requirements
Steps for running this example in the shell
- Start Ollama and pull the chat model:
bash
ollama serve
ollama pull llama3.1:8b- Run the application:
bash
mvn spring-boot:runOutput
DRAFT
A context window is a fixed token budget shared by instructions, retrieved passages, tool results, and the reply...
REVIEW
The paragraph states the budget idea clearly and gives concrete consumers of the budget. Replace the closing claim with a measurable statement about token counts.