How to create Agent Memory and train Agent on datasets?

How do I create Agent Memory and train an Agent on datasets?

This will help the Agent learn from the input and output data.

I know we can put them in the prompt section, but I have a large, complex Agent, so I cannot feed all samples in the prompts.

@tejaskumar.darji

that is where context comes into picture

data fabrics as context is in preview currently

cheers

Okay, let me explore this feature.

Could you guide further in this? My purpose is to add some training and run data to the agent so that it can learn from the runs. Any advice on this would be appreciated.

Eval sets are just for testing purpose but looking to strengthen the agent more with training data.

@tejaskumar.darji

Evals are for testing yes. but once evals run it provides recommendations on what can be improved as well..that is where iterative improvement occurs

in agent traces in evals you would have options for suggestions also, even agent score can help you understand and improve

cheers

And one more piece of advice I need: I have a rule matrix with 80 rows and 10 columns mapping inputs to outputs. The agent should match the respective row and return the output based on this matrix. Where should this matrix be placed? One option is to include it in the System Prompt, but that makes it huge. What is the best approach in this case?

@tejaskumar.darji

add it as context if its dynamic and difficult to parse or add a tool which can filter based on an input and give the row which the agent can then use if needed

cheers