dspy icon indicating copy to clipboard operation
dspy copied to clipboard

Add an unique id for every entry in history

Open Anindyadeep opened this issue 8 months ago • 6 comments

We can infer that, history in dspy acts as a trace, where we can see previous LLM response along with all the additional arguments. However, with more and more llm responses, it becomes hard to follow along the traces, since this is a list. And this becomes a common problem for all the supported LLMs in dsp.modules

So my proposal is to have some id parameter with the following example standard:

module-name:current-date-time

or we can also use uuid but then add, date-time parameter seperately. The reason I put emphasis on datetime, because it makes easier to do some filter operations.

Let me know what everyone thinks on this.

Anindyadeep avatar May 29 '24 03:05 Anindyadeep