docs(@voltagent/rag): add README with chunker API and usage examples#1342
docs(@voltagent/rag): add README with chunker API and usage examples#1342Goutham-Annem wants to merge 2 commits into
Conversation
🦋 Changeset detectedLatest commit: f995575 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughA new README is added for the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/rag/README.md`:
- Around line 279-288: The example code uses the TokenChunker class but only
imports Tokenizer from the "`@voltagent/rag`" package. Add TokenChunker to the
import statement on the first line so that it imports both Tokenizer and
TokenChunker from "`@voltagent/rag`", making the example complete and functional.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: d3922464-09da-4691-9fe4-ed5a97530c1a
📒 Files selected for processing (2)
.changeset/rag-readme.mdpackages/rag/README.md
There was a problem hiding this comment.
2 issues found across 2 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
…rt and correct char offsets
What is current behavior?
@voltagent/raghas no README. The package provides 13 chunkers (token, sentence, recursive, markdown, code, HTML, JSON, LaTeX, table, semantic, semantic-markdown, late, neural, slumber) plus tokenizer and similarity utilities, but there is no documentation at the package level.What is new behavior?
Adds
packages/rag/README.mdcovering:Chunktype referenceNotes for reviewers
Documentation-only change. No code was modified.
Summary by cubic
Adds a comprehensive README to
@voltagent/ragcovering installation, API, and examples for all 13 chunkers, utilities (tokenizer, cosine similarity, text helpers), theChunktype, and custom tokenizer setup. Also fixes the custom tokenizer example by adding a missing import and correcting character offsets.Written for commit f995575. Summary will update on new commits.
Summary by CodeRabbit
@voltagent/ragpackage, including installation guidance, chunker API reference, utility functions, type shape details, and configuration/examples for custom tokenizers.