Skip to content

[Bugfix] collection.count() returns the number of chunks, not tokens.#2468

Open
phungpx wants to merge 1 commit intoconfident-ai:mainfrom
phungpx:bugfix/invalid_document_tokens_count
Open

[Bugfix] collection.count() returns the number of chunks, not tokens.#2468
phungpx wants to merge 1 commit intoconfident-ai:mainfrom
phungpx:bugfix/invalid_document_tokens_count

Conversation

@phungpx
Copy link
Contributor

@phungpx phungpx commented Feb 2, 2026

I would like to contribute a solution to fix the issue #2467.

Thanks

…t logic and improve error messaging. Removed unused math import and enhanced suggestions for adjusting chunk size and overlap based on actual chunk counts.
@vercel
Copy link

vercel bot commented Feb 2, 2026

@phungpx is attempting to deploy a commit to the Confident AI Team on Vercel.

A member of the Team first needs to authorize it.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 2, 2026

PR author is not in the allowed authors list.

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.

1 participant