- Complete Quickstart to understand basic operations
- Ensure you have LLM Providers configured
- Have an existing knowledge graph (add → cognify completed)
What Memify Does
- Pulls a subgraph (or whole graph) into a mini-pipeline
- Applies enrichment tasks to create new nodes/edges from existing context
- Defaults: extracts relevant chunks and adds coding rule associations
Code in Action
This simple example uses basic text data for demonstration. In practice, you can enrich large knowledge graphs with complex derived facts and associations.
What Just Happened
Step 1: Build Your Knowledge Graph
Step 2: Enrich with Memify
node_name and node_type.
Step 3: Query Enriched Data
SearchType.CODING_RULES.
What Changed in Your Graph
After memify completes, the graph contains:Rulenodes — each rule extracted by the LLM from your document chunks (e.g., “Follow PEP8”, “Susan must review PRs”).rule_associated_fromedges — connecting eachRulenode back to theDocumentChunkit was derived from.coding_agent_rulesnode set — all rules are grouped under this node set, which is whatSearchType.CODING_RULESqueries against.
Parameters
Parameters
dataset(str, default:"main_dataset") — the dataset to process. Must match the dataset you used incognee.add()andcognee.cognify().node_name(List[str], default:None) — filter the graph to nodes with these names. Useful when you want to process only a subset of your graph.node_type(Type, default:NodeSet) — filter the graph to nodes of this type. Combined withnode_namefor targeted enrichment.run_in_background(bool, default:False) — ifTrue, memify returns immediately and processes in the background.
Customizing Tasks (Optional)
What Happens Under the Hood
The default memify tasks are equivalent to:- Extraction:
Task(extract_subgraph_chunks)- pulls relevant chunks from your graph - Enrichment:
Task(add_rule_associations, rules_nodeset_name="coding_agent_rules")- creates new associations and rules
Additional examples
Additional examples about Memify are available on our github.Troubleshooting
Troubleshooting
- Empty rules / no results from
CODING_RULESsearch — the input text may be too short or unrelated to coding practices. Memify’s default pipeline extracts coding rules; it works best with text that contains development guidelines, conventions, or process descriptions. - Error: no graph data found — run
cognee.add()andcognee.cognify()before callingcognee.memify(). Memify operates on an existing knowledge graph. - LLM errors — verify that your LLM provider is configured correctly. See LLM Providers.
- Permission errors — the user must have write access to the target dataset. See Permissions.