Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Router Agent and Summarizer Agent #4

Open
CakeCrusher opened this issue Apr 6, 2024 · 0 comments
Open

Merge Router Agent and Summarizer Agent #4

CakeCrusher opened this issue Apr 6, 2024 · 0 comments
Labels
feature Feature to improve the objective of HexAmorous

Comments

@CakeCrusher
Copy link

CakeCrusher commented Apr 6, 2024

Objective

Utilize DSPy to develop a pipeline that programmatically optimizes instructions for the following task.
Experiment merging the functionality of #1 (Router Agent) #3 (Summarizer Agent) to generate both the transition request and the generated summary.
The resulting instruction should be concise (aim for <500 tokens) with high consistency of Transition string generation (aim for >95%) and decent decision accuracy (aim for >70%). These qualifiers should be proven via DSPy.
Instead of this:
image
It should flow like so:
image

Input

(not sufficiently knowledgable on DSPy to comment)

Output

(not sufficiently knowledgable on DSPy to comment)

Example

Prompt:
(Chat history provided in completions API that could be 1000s of tokens long)
Instruction:

Your role is to determine of tools are needed or if a normal response is sufficient. If tools are necessary then create summarization to be used during tool use to accomplish the current user request, also ensure that it contains the word TRANSITION. Otherwise just respond normally.

The tools available to you are:
- Text Generation:  general text response
- Retrieval: retrieve information related to the last message

Use 1
Chat History:
...
I like writing about llamas
...
User Message:
What did I write about

Agent Response:
You are to TRANSITION. The user likes to write about llamas and now wants to know what he wrote, you may want to use retrieval for this task ...
Use 2
User Message:
When did ww2 happen.

Agent Response:
World War 2 began in 1941 ...

Test

Testing is core to this task but will already be done in the process.

Resources & Suggestions

@CakeCrusher CakeCrusher added the feature Feature to improve the objective of HexAmorous label Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature to improve the objective of HexAmorous
Projects
None yet
Development

No branches or pull requests

1 participant