Skip to content
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

[CHORE]: Embedder embedText length check #1239

Open
timothycarambat opened this issue Apr 30, 2024 · 0 comments
Open

[CHORE]: Embedder embedText length check #1239

timothycarambat opened this issue Apr 30, 2024 · 0 comments
Assignees

Comments

@timothycarambat
Copy link
Member

How are you running AnythingLLM?

All versions

What happened?

Continuation of #1238

When embedding a string or array of strings we need to ensure that every item is < the length of the maximum length of the selected embedding model or else the embedder will fail to encode and vectorized a prompt.

This only applies to the prompt given, which tends to be below the embedders length, but we need to ensure this is always the case via a util/helper function.

Are there known steps to reproduce?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant