system context

This commit is contained in:
Steve Androulakis
2024-12-31 12:19:53 -08:00
parent c6b71b8ffa
commit 4286be2e5d
4 changed files with 72 additions and 57 deletions

View File

@@ -2,7 +2,12 @@
Multi-Turn Chat using an Entity Workflow. The workflow runs forever unless explicitly ended. The workflow continues as new after a configurable number of chat turns to keep the prompt size small and the Temporal event history small. Each continued-as-new workflow receives a summary of the conversation history so far for context.
To run, first see `samples-python` [README.md](../../README.md), and `ollama` [README.md](../README.md) for prerequisites specific to this sample. Once set up, run the following from this directory:
## Setup
* Install [Ollama](https://ollama.com) and the Mistral model (`ollama run mistral`).
* Install and run Temporal. Follow the instructions in the [Temporal documentation](https://learn.temporal.io/getting_started/python/dev_environment/#set-up-a-local-temporal-service-for-development-with-temporal-cli) to install and run the Temporal server.
* Install the dependencies: `poetry install`
## Running the example
1. Run the worker: `poetry run python run_worker.py`
2. In another terminal run the client with a prompt.