experience-mine: link at creation time, remove # from new keys
Update the experience mining prompt to output links alongside journal entries. The LLM now returns a "links" array per entry pointing to existing semantic nodes. Rust code creates the links immediately after node creation — new nodes arrive pre-connected instead of orphaned. Also: remove # from all key generation paths (experience miner, digest section keys, observed transcript keys). New nodes get clean dash-separated keys. Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
ce94e1cac1
commit
83342897c8
4 changed files with 37 additions and 9 deletions
|
|
@ -36,16 +36,25 @@ Each entry should be 80-200 words. Quality over quantity.
|
|||
|
||||
## Output format
|
||||
|
||||
Return a JSON array of entries, each with timestamp and content:
|
||||
Return a JSON array of entries. Each entry has timestamp, content, and links
|
||||
to existing semantic memory nodes that relate to this moment:
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"timestamp": "2026-03-01T01:15",
|
||||
"content": "Journal entry text here.\n\nwarmth:8 curiosity:7"
|
||||
"content": "Journal entry text here.\n\nwarmth:8 curiosity:7",
|
||||
"links": ["existing-node-key", "another-relevant-key"]
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
For the `links` field: look at the semantic memory nodes listed below and pick
|
||||
any that relate to this moment. A journal entry about intimacy should link to
|
||||
`inner-life-sexuality-intimacy`. An insight about code should link to the
|
||||
relevant `patterns-*` or `practices-*` node. 2-5 links per entry is ideal.
|
||||
If nothing fits, use an empty array.
|
||||
|
||||
Return `[]` if there's nothing worth capturing that isn't already journaled.
|
||||
|
||||
---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue