Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/691a41cd-2efc-800c-9eff-de439224a90d
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== ### ==== You can think of the memory as three stacked layers, all stored as LoreTokens: # Micro-memory (live window) - The last few turns, recent actions, immediate goals. - Kept almost 1:1 with what was said/done (but still LoreTokenized). # Meso-memory (session & topic summaries) - “What did we do today?” - “How did this investigation / trade sequence / medical case play out?” - Summaries of sessions, projects, incidents, trades, experiments. # Macro-memory (identity & lifetime knowledge) - Who the user is, what they care about, long-term rules, ethics, system constraints. - Big arcs: Nova’s development history, a patient’s chronic condition, a project’s full evolution. Each of those layers is not stored as giant text blobs. They’re stored as dense LoreToken graphs: * Nodes = concepts, events, decisions * Edges = relationships (causes, depends-on, contradicts, similar-to, same-topic-as, etc.) ===== When a new query or user message arrives, SAIQL does something like: ===== # Interpret the intent - “Is this about trading? About Nova’s self-rewrites? About a specific bug? About Erica’s presentation?” - Convert that into a set of semantic filters: topics, entities, time ranges, importance scores. # Query the LoreToken graph (while it’s still compressed) - FIND relevant micro-memory (last few turns about this topic) - FIND meso summaries of related sessions - FIND macro facts that always matter (identity, key rules, constraints) # Rank and compose a fresh context - Pick only the most relevant pieces from each layer. - Avoid duplicates/overlap (no repeating the same explanation 10 times). - Respect a strict token budget when building the actual prompt. # Emit a compact, structured prompt to the model: - A handful of targeted summaries + a few verbatim snippets + the actual user query. Then, after the model responds: # Write back a new LoreToken: - What was asked, what was answered, what decisions were made. - Link it into the graph so future queries can find it via SAIQL. That is “rolling context” in action: for each new turn, SAIQL rolls in fresh, relevant context and rolls out the stale, irrelevant clutter — while the LoreToken store behind it keeps growing in depth and structure.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)