Add line numbers to RAG search results for source navigation#4
Merged
Conversation
- Pre-chunk markdown with header-aware splitting to preserve line positions - Store start_line, end_line, header_path in chunk metadata - Return line numbers in RAG search results so agents can navigate to source - Add test to verify line numbers are included in results 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
start_lineandend_linefieldsChanges
chromadb_client.pyto pre-chunk markdown with line number metadatasearch.pyto returnstart_lineandend_linein RAG resultsTest plan
test_rag_search_includes_line_numbersverifies the feature🤖 Generated with Claude Code