What is a node set
A node set is a tag you attach to data when you add it. cognify passes the tag on to the DataPoints it builds from that data, so searches can be limited to it.How node sets work in Rust
A node set is a tag attached to ingested data and the DataPoints derived from it, used to categorize and later scope the knowledge base. It is partially realized in Rust today:- Tagging at ingest —
addaccepts anode_set, stored onData.node_setand underexternal_metadata["node_set"], where cognify reads it and propagates it to derived DataPoints assource_node_set. Earlier versions wrote only the column, so data added with a node set was never tagged andnode_namesearches missed it; cognify now falls back to the column for those rows. Adding the same content again with a node set replaces its stored tags (without one, they are kept). Every name must be non-empty, and an item’s ownexternal_metadata["node_set"]must be a list of names ornull; otherwise the wholeaddfails withIngestionError::InvalidNodeSetbefore anything is stored. The pipeline executor can attachnode_setprovenance to task outputs (Tagged/TaggedMetaincognee-core). - Scoping — a graph subset can be selected by node type and node name
(the graph trait’s
get_nodeset_subgraph, used by search’s node-name filter). The internalpersist_sessionsstep tags cached session data with a fixed node set. Memify’s--node-type/--node-namescoping went away with memify.
Related
Recall
Scope a recall by node name
Add
Tag data at ingest
DataPoints
Where the tag is stored