Files
talemate/docs/user-guide/node-editor/reference/nodes/agents-memory.md
veguAI 89e01ac138 Node editor node reference glossary (#107) (#111)
* docs: complete node editor node reference glossary (#107) - generated by new nodes.tools glossary subcommand, 47 categorized pages covering all 403 nodes, docstring gap fixes, help-agent docs-index entries

* docs: fix Jinja2 Format discoverability - document dynamic-input template variables, move node to string page, link key inference from dynamic-input notes, strip links from index summaries

* help agent: keep node reference out of the chat prompt - collapse glossary entries to one pointer line (~19k chars saved), agent retrieves node info via search_docs/read_doc tool calls

* help agent: replace in-prompt docs index with find_docs lookup tool - prompt carries a 13-line section overview (~1.5k chars vs ~66k), pages located via keyword-scored find_docs at runtime

* changelog: help agent prompt slimming + find_docs lookup

* docs: sort node reference index and nav alphabetically by page title

* review: move module constants into top-of-file constant blocks (glossary MAX_DEFAULT_LENGTH; docs SECTION_DESCRIPTIONS, _FIND_STOPWORDS, FIND_DOCS_LIMIT)

* review: word-boundary find_docs scoring with plural/-ing folds, find_docs+section_overview unit tests, jinja2 template field description override

* docs: help agent overview no longer claims an in-prompt index of all documentation pages

* docs: full node docstring audit pass - 335 classes audited by 5 agents, ~89 accuracy fixes (nonexistent/misnamed sockets, wrong behavior claims), ~94 expansions, 5 factually-wrong PropertyField descriptions corrected, glossary regenerated
2026-07-20 01:49:33 +03:00

2.5 KiB

Memory Agent Nodes

Query the long-term memory database (RAG) and unpack the returned memory documents.

2 nodes.

Node Registry path
Query Context DB agents/memory/QueryContextDB
Unpack Memory Document agents/memory/UnpackMemoryDocument

Query Context DB

agents/memory/QueryContextDB

Queries the memory agent's context database with one or more queries and collects the matching documents, up to a total token budget.

Inputs

Input Type Description
state any The graph state
queries list,str (optional) The queries to run (list, or a single query string)
meta_filters dict Metadata filters to constrain the results (optional)
max_tokens int The maximum total tokens of results to return (optional)
fn_filter function Function that receives a result and returns whether to keep it (optional)
fn_formatter function Function that receives a result and returns its formatted replacement (optional)

Outputs

Output Type Description
state any The state input, passed through
results list The list of matching documents

Properties

Property Type Default Description
queries list [] The queries to use to query the context database
meta_filters dict {} The meta filters to apply to the results
max_tokens int 1024 The maximum number of tokens to return
limit int 10 The number of N best results to consider per query
iterate int 3 The number of results to return per query

Unpack Memory Document

agents/memory/UnpackMemoryDocument

Unpacks a memory document into its individual fields.

Inputs

Input Type Description
document memory/document The memory document to unpack

Outputs

Output Type Description
document memory/document The memory document, passed through
meta dict The document's metadata dict
id str The document's ID in the memory database
raw dict The document's raw content
as_text str The document rendered as text
as_dict dict The document as a dict
context_id context_id The document's context ID