diff options
Diffstat (limited to 'apps/cf-ai-backend/src/utils/chonker.ts')
| -rw-r--r-- | apps/cf-ai-backend/src/utils/chonker.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/cf-ai-backend/src/utils/chonker.ts b/apps/cf-ai-backend/src/utils/chonker.ts index 39d4b458..c63020be 100644 --- a/apps/cf-ai-backend/src/utils/chonker.ts +++ b/apps/cf-ai-backend/src/utils/chonker.ts @@ -1,5 +1,8 @@ import nlp from "compromise"; +/** + * Split text into chunks of specified max size with some overlap for continuity. + */ export default function chunkText( text: string, maxChunkSize: number, |