From 06768afc93feead35befeb761883f3f9c12f90fd Mon Sep 17 00:00:00 2001 From: zTgx <747674262@qq.com> Date: Sun, 26 Apr 2026 09:19:51 +0800 Subject: [PATCH] feat: add chain command and intent-based navigation hints - Add new 'chain' command to follow pre-computed reasoning chains from nodes - Implement intent-based routing hints that suggest direct jumps based on pre-computed document structure routes - Combine intent and keyword hints into unified hint system for better navigation guidance - Update available commands list to include the new 'chain' functionality - Add overlap detection in cat command to mark related nodes as visited - Filter evidence scores by query keyword relevance for more targeted results --- vectorless/ask/prompts.py | 3 +- vectorless/ask/worker/agent.py | 72 +++++++++++++++++++++++++++---- vectorless/ask/worker/commands.py | 57 ++++++++++++++++++++++++ vectorless/ask/worker/parse.py | 3 ++ 4 files changed, 125 insertions(+), 10 deletions(-) diff --git a/vectorless/ask/prompts.py b/vectorless/ask/prompts.py index 90014e1..384f55f 100644 --- a/vectorless/ask/prompts.py +++ b/vectorless/ask/prompts.py @@ -64,6 +64,7 @@ class NavigationParams: - doc_card Show document-level overview (title, summary, sections) - concepts List key concepts extracted from the document - find_section