-
Notifications
You must be signed in to change notification settings - Fork 3
TraceMemoryDB #17
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
base: experimental
Are you sure you want to change the base?
TraceMemoryDB #17
Conversation
Very excited about this actually -- let's discuss more on Friday :D |
support heapq all unit tests of TraceMemoryDB passing added first TraceMemoryDB test use cases (DEMO how to replace optimizer buffer and log)
FYI: I'm progressing by drafting some of the key use cases to better design the API |
Technically, is this a Memory Module for the Optimizer (treating Optimizer as an Agent)? I think you already mentioned this in your doc -- but any chance to make it as part of the "agent-memory interface"? (i.e., define the ways an optimizer agent will interact with the memory database to retrieve and store memory?) |
This is a shared Memory mechanism available for the Optimizer(s) and the Trainer(s) Sure it could be the agent memory interface => you can see some use cases in test_trace_memory_db.py |
This is not the final version but to understand current implementation (NOT TO BE MERGED)
I am currently simplifying the data model (below) and will reduce get/log key parameters.
B. Data Model {#b.-data-model}
Core Fields (Required for All Entries)** {#b.2-core-fields-(required-for-all-entries)}
Canonical
data payload types
Values** {#b.3-canonical-data-payload-types-values}Below is the canonical set of values that may appear in
data’s payload
. Each key indicates how thevalue
field should be interpreted:data payload types
value
Typegoal
string
(task description)prompt
string
code
string
(source code)diff_patch
string
(diff text)graph_nodes
nodes object
score
number
scores
score
in JSON.object
– mapping names→numbersfeedback
string
error
string
(stack trace/text)validation_result
string
or smallobject
hypothesis
string
orobject
observation
string
orobject
checkpoint
string
or minimalobject
context
object