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
|
|
@ -684,7 +684,7 @@ pub fn select_conversation_fragments(n: usize) -> Vec<(String, String)> {
|
|||
let projects = crate::config::get().projects_dir.clone();
|
||||
if !projects.exists() { return Vec::new(); }
|
||||
|
||||
let observed = super::enrich::keys_with_prefix(&format!("{}#", OBSERVED_PREFIX));
|
||||
let observed = super::enrich::keys_with_prefix(&format!("{}-", OBSERVED_PREFIX));
|
||||
|
||||
let mut jsonl_files: Vec<PathBuf> = Vec::new();
|
||||
if let Ok(dirs) = fs::read_dir(&projects) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue