Skip to content

[IDEA] allow setting batch size for embedding model #1121

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

Open
King-of-Infinite-Space opened this issue Feb 18, 2025 · 0 comments
Open

[IDEA] allow setting batch size for embedding model #1121

King-of-Infinite-Space opened this issue Feb 18, 2025 · 0 comments
Labels
upgrade New feature or request

Comments

@King-of-Infinite-Space
Copy link

Describe the feature you'd like

Currently the embedding model sends up to 1000 entries to api each time. However, third-party embedding APIs may impose different maximum batch size (despite being OpenAI compatible). For better compatibility, I suggest adding a setting for embedding batch size either from the admin panel or as an environment variable.

def embed_documents(self, docs):

@King-of-Infinite-Space King-of-Infinite-Space added the upgrade New feature or request label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upgrade New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant