Prompt Rephrasing
Prompt Rephrasing is a mechanism whereby the user prompt is cleansed and formatted for better context association and processing by agents in the workflow.
Key Features
It supports with several functions outlined below.
1. Removes Typos & Adds Punctuation
Small formatting and typo issues are addressed to cleanse the prompt. This increases interpretability and success rate for correctly processing the user's prompt. Note that this may not correct items disclosed in quotes or other words or phrases that suggest they are as-intended already.
2. Incorporates Chat History
Prompts and responses noted earlier in the chat (thread) that are relevant to the current prompt are incorporated in the Rephrased Prompt. This consolidates context into the prompt used across agents avoiding complications with history and irrelevant actions or context for the other agents to interpret in lieu.
3. Restructures for Intent
The main driver is to also add interpretation for very loosely-articulated prompts, so the workflow has a consistent interpretation throughout its run. This aims to minimize ambiguity in the context of different agents and their instructions/scopes.
4. Facilitates More Accurate Context Retrieval
By standardizing prompts for consistently and completeness, we improve retrieval-augmented generation (RAG) performance overall and make it more consistent between users and their different prompts, making overall behaviour and performance of the workflows more predictable.
Other Considerations
While rephrasing has many functions and is a key component of workflows, there are items to consider:
If the prompt is too ambiguous rephrasing will simply request that the user provides more clarity rather than making excessive assumptions.
Prompt Rephrasing on occasion may add context in trying to achieve clarity. In these cases it is suggested you reattempt clarifying any ambiguous points or adding quotes on items you do not want changed.
Last updated
Was this helpful?