Goal planning with Embabel and Ollama
This example shows the planner choosing between two routes to the same goal.
Both lookUpAnswer and generateAnswer produce an Answer, and the first one is declared cheaper. The planner tries the cheap route first, and when the lookup returns nothing it replans and takes the model route. The action costs, not a hand-written branch, decide the order.
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
Open the local client and choose the office profile. (from knowledge base)
Update the billing address on the account settings page before the next invoice is issued. (from model)