Skip to content

feat(search): add search_from functionality and ToC-based navigation#27

Merged
zTgx merged 3 commits intodevfrom
feat-retrieval-system
Apr 9, 2026
Merged

feat(search): add search_from functionality and ToC-based navigation#27
zTgx merged 3 commits intodevfrom
feat-retrieval-system

Conversation

@zTgx
Copy link
Copy Markdown
Contributor

@zTgx zTgx commented Apr 8, 2026

  • Introduce search_from method to SearchTree trait allowing searches to start from specific nodes instead of root
  • Implement core search logic refactoring in BeamSearch and GreedySearch to support parameterized start nodes via search_impl method
  • Add ToCNavigator module for hierarchical subtree location
  • Update SearchStage to use ToC-based location followed by tree traversal from located subtrees
  • Replace LLM-first direct TOC search with structured ToC navigation
  • Remove debug println statements and replace with proper logging
  • Refactor search execution to handle both single and decomposed queries
  • Add SearchCue type for representing located subtrees with confidence

- Introduce search_from method to SearchTree trait allowing searches
  to start from specific nodes instead of root
- Implement core search logic refactoring in BeamSearch and GreedySearch
  to support parameterized start nodes via search_impl method
- Add ToCNavigator module for hierarchical subtree location
- Update SearchStage to use ToC-based location followed by tree
  traversal from located subtrees
- Replace LLM-first direct TOC search with structured ToC navigation
- Remove debug println statements and replace with proper logging
- Refactor search execution to handle both single and decomposed queries
- Add SearchCue type for representing located subtrees with confidence
@zTgx zTgx self-assigned this Apr 8, 2026
@zTgx zTgx linked an issue Apr 8, 2026 that may be closed by this pull request
@zTgx zTgx changed the base branch from main to dev April 8, 2026 22:36
zTgx added 2 commits April 9, 2026 08:58
…lback logic

- Rename level_0_nodes top_level_nodes for clarity
- Simplify BM25 scoring phase description in docs
- Split document imports for better organization
- Add fallback mechanism when no branches pass threshold
- Improve LLM refinement by collecting tree entries directly
- Add depth control for tree traversal in LLM refinement
- Remove unused TocView dependency

fix(retrieval): enhance search stage with candidate restoration

- Use depth-1 nodes instead of level-0 for top-level sections
- Restore cue root nodes as direct candidates during traversal
- Add sorting and deduplication for search candidates
- Improve debugging output for search iterations
@zTgx zTgx merged commit 9f54ab9 into dev Apr 9, 2026
@zTgx zTgx deleted the feat-retrieval-system branch April 11, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

query: What is Vectorless?, got wrong section

1 participant