-
Notifications
You must be signed in to change notification settings - Fork 3.5k
feat(knowledge): add token, sentence, recursive, and regex chunkers #4102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
9f83f87
feat(knowledge): add token, sentence, recursive, and regex chunkers
waleedlatif1 59f86e9
fix(chunkers): standardize token estimation and use emcn dropdown
waleedlatif1 25abb8a
fix(chunkers): address research audit findings
waleedlatif1 211fe90
fix(chunkers): fix remaining audit issues across all chunkers
waleedlatif1 4872e75
chore(chunkers): lint formatting
waleedlatif1 fc006ee
updated styling
waleedlatif1 c5b9b2f
fix(chunkers): audit fixes and comprehensive tests
waleedlatif1 cb814ff
chore(chunkers): remove unnecessary comments and dead code
waleedlatif1 899fc68
fix(chunkers): address PR review comments
waleedlatif1 4c3508b
fix(chunkers): use consistent overlap pattern in regex fallback
waleedlatif1 3a26dad
fix(chunkers): prevent content loss in word boundary splitting
waleedlatif1 5e8b051
fix(chunkers): restore structured data token ratio and overlap joiner
waleedlatif1 a53f760
lint
waleedlatif1 ec6fa58
fix(chunkers): fall back to character-level overlap in sentence chunker
waleedlatif1 e391efa
fix(chunkers): fix log message and add missing month abbreviations
waleedlatif1 f7fe06a
lint
waleedlatif1 9c624db
fix(chunkers): restore structured data detection threshold to > 2
waleedlatif1 4fd7685
fix(chunkers): pass chunkOverlap to buildChunks in TokenChunker
waleedlatif1 97a0bd4
fix(chunkers): restore separator-as-joiner pattern in splitRecursively
waleedlatif1 2c5a852
feat(knowledge): add JSONL file support for knowledge base uploads
waleedlatif1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
feat(knowledge): add token, sentence, recursive, and regex chunkers
- Loading branch information
commit 9f83f8738f302afb3dddc5062cf769dc73f81366
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,9 @@ | ||
| export { DocsChunker } from './docs-chunker' | ||
| export { JsonYamlChunker } from './json-yaml-chunker' | ||
| export { RecursiveChunker } from './recursive-chunker' | ||
| export { RegexChunker } from './regex-chunker' | ||
| export { SentenceChunker } from './sentence-chunker' | ||
| export { StructuredDataChunker } from './structured-data-chunker' | ||
| export { TextChunker } from './text-chunker' | ||
| export { TokenChunker } from './token-chunker' | ||
| export * from './types' |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.