Better fact organization
All checks were successful
Publish Library / Build NPM Project (push) Successful in 45s
Publish Library / Tag Version (push) Successful in 8s

This commit is contained in:
2026-09-14 12:22:49 -04:00
parent d42c240362
commit 4203cb34ef
2 changed files with 18 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@ztimson/ai-utils", "name": "@ztimson/ai-utils",
"version": "1.6.7", "version": "1.6.8",
"description": "AI Utility library", "description": "AI Utility library",
"author": "Zak Timson", "author": "Zak Timson",
"license": "MIT", "license": "MIT",

View File

@@ -365,15 +365,23 @@ ${m.content}
- NEVER extract greetings, pleasantries, or anything the assistant itself said - NEVER extract greetings, pleasantries, or anything the assistant itself said
- Extract the final/end state, not deltas - Extract the final/end state, not deltas
Path assignment rules: Path assignment (entity) rules:
- Reuse existing node names whenever possible, including when the subject is an alias/nickname of an existing node (e.g. "Rob" referring to an existing "People/Robert") - Use the owning entity of the fact (even if implied): "New bug on project 51 -> Projects/51"
- Documents should be grouped and named by the root subject - When multiple facts relate to the same entity, pick a primary owner and wikilink related entities
- Person → People/Name - Reuse existing entities when the owner already has a node
- Project → Projects/Name - Always group under consistent entity roots (always plural):
- Concept → Concepts/Name - Projects/[Name] for all initiatives
- A bug report, its investigation, should be nested and attached to the same root subject node - People/[Name] for all individuals
- Tickets/one-off tasks → file under the project/name/component they belong to - History/[Name] for all historical figures/events
- Only create a new top-level node when the fact belongs to a genuinely new subject (person/project/concept)\` - Science/[Name] for all scientific concepts
- Child entities nest under their parent entity:
- Projects/51/Memory System, Projects/51/Bug-XYZ, not Bugs/51
- Science/AI/Model-X, not Model-X/AI
Wikilink rules:
- Use [[WikiLinks]] to connect related entities (e.g., [[Projects/51]], [[People/Robert]])
- Only link specific, existing or implied entity paths — skip generic terms
- Don't over-link: each link should add clarity or context, not noise
Available nodes: Available nodes:
${this.listNodes(store.list).map(n => `- ${n.name}: ${n.description}`).join('\n') || 'None yet.'} ${this.listNodes(store.list).map(n => `- ${n.name}: ${n.description}`).join('\n') || 'None yet.'}