Update note management from db vector to index
This commit is contained in:
@@ -658,9 +658,14 @@ async def run_local_agent(
|
||||
# ── Phase B: single LLM call ─────────────────────────
|
||||
extraction_rules = _get_extraction_rules(agent_config, content_type)
|
||||
no_match_behavior = _get_no_match_behavior(agent_config)
|
||||
global_rules_lines = "\n".join(
|
||||
f"- {r}" for r in agent_config.get("global_rules", [])
|
||||
)
|
||||
base_global_rules = list(agent_config.get("global_rules", []))
|
||||
if "notes" in config.data_types:
|
||||
base_global_rules.append(
|
||||
"For notes: when updating an existing note use `propose_note_edit` "
|
||||
"(type=append/insert/replace) so the user can review AI changes. "
|
||||
"Only call `update_note` for complete content replacement without review."
|
||||
)
|
||||
global_rules_lines = "\n".join(f"- {r}" for r in base_global_rules)
|
||||
metadata_section = _format_metadata(preprocessed.metadata)
|
||||
|
||||
system_prompt = compile_prompt(
|
||||
|
||||
Reference in New Issue
Block a user