[PR #2655] [MERGED] feat: support setting maxConcurrentChunks for Generic OpenAI embedder #4057

Closed
opened 2026-02-22 18:35:03 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2655
Author: @hdelossantos
Created: 11/19/2024
Status: Merged
Merged: 11/21/2024
Merged by: @timothycarambat

Base: masterHead: 2654-support-setting-embeddings-batch-size-for-openai-compatible


📝 Commits (5)

  • d34b248 exposes maxConcurrentChunks parameter for the generic openai embedder through configuration. This allows setting a batch size for endpoints which don't support the default of 500
  • abaab60 Merge remote-tracking branch 'origin/master' into feature/support-setting-embeddings-batch-size-for-openai-compatible
  • 63867b6 Merge remote-tracking branch 'origin/master' into feature/support-setting-embeddings-batch-size-for-openai-compatible
  • 64a28c7 Update new field to new UI
  • a6dba7e Merge branch 'master' into 2654-support-setting-embeddings-batch-size-for-openai-compatible

📊 Changes

6 files changed (+69 additions, -4 deletions)

View changed files

📝 docker/.env.example (+2 -1)
📝 frontend/src/components/EmbeddingSelection/GenericOpenAiOptions/index.jsx (+44 -0)
📝 server/.env.example (+1 -0)
📝 server/models/systemSettings.js (+2 -0)
📝 server/utils/EmbeddingEngines/genericOpenAi/index.js (+16 -3)
📝 server/utils/helpers/updateENV.js (+4 -0)

📄 Description

Pull Request Type

  • [ x] feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #2654

What is in this change?

Adds an advanced settings collapsible menu to the Generic OpenAI embedder configuration with input to optionally set max concurrent chunks. If no input is provided, the maxConcurrentChunks variable is defaulted to 500.

image

Additional Information

Developer Validations

  • [x ] I ran yarn lint from the root of the repo & committed changes
  • [x ] Relevant documentation has been updated
  • [x ] I have tested my code functionality
  • [x ] Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/2655 **Author:** [@hdelossantos](https://github.com/hdelossantos) **Created:** 11/19/2024 **Status:** ✅ Merged **Merged:** 11/21/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `2654-support-setting-embeddings-batch-size-for-openai-compatible` --- ### 📝 Commits (5) - [`d34b248`](https://github.com/Mintplex-Labs/anything-llm/commit/d34b248bff8bd11714d68742b61886ebfaacf21b) exposes `maxConcurrentChunks` parameter for the generic openai embedder through configuration. This allows setting a batch size for endpoints which don't support the default of 500 - [`abaab60`](https://github.com/Mintplex-Labs/anything-llm/commit/abaab60c3566d90e8fc2266d9e8f74622da54710) Merge remote-tracking branch 'origin/master' into feature/support-setting-embeddings-batch-size-for-openai-compatible - [`63867b6`](https://github.com/Mintplex-Labs/anything-llm/commit/63867b6ae3ee4769eedc5b6aca6b618baf64b947) Merge remote-tracking branch 'origin/master' into feature/support-setting-embeddings-batch-size-for-openai-compatible - [`64a28c7`](https://github.com/Mintplex-Labs/anything-llm/commit/64a28c77dd21250f1d104b17c0268b96c6be62f7) Update new field to new UI - [`a6dba7e`](https://github.com/Mintplex-Labs/anything-llm/commit/a6dba7e36a7a2023b37bb86586ff11d409dba1ac) Merge branch 'master' into 2654-support-setting-embeddings-batch-size-for-openai-compatible ### 📊 Changes **6 files changed** (+69 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+2 -1) 📝 `frontend/src/components/EmbeddingSelection/GenericOpenAiOptions/index.jsx` (+44 -0) 📝 `server/.env.example` (+1 -0) 📝 `server/models/systemSettings.js` (+2 -0) 📝 `server/utils/EmbeddingEngines/genericOpenAi/index.js` (+16 -3) 📝 `server/utils/helpers/updateENV.js` (+4 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #2654 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> Adds an advanced settings collapsible menu to the Generic OpenAI embedder configuration with input to optionally set max concurrent chunks. If no input is provided, the `maxConcurrentChunks` variable is defaulted to 500. <img width="1377" alt="image" src="https://github.com/user-attachments/assets/dd03b979-7a16-4a3f-984b-c65283c315db"> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x ] I ran `yarn lint` from the root of the repo & committed changes - [x ] Relevant documentation has been updated - [x ] I have tested my code functionality - [x ] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:03 -05:00
yindo closed this issue 2026-02-22 18:35:03 -05:00
yindo changed title from [PR #2655] feat: support setting maxConcurrentChunks for Generic OpenAI embedder to [PR #2655] [MERGED] feat: support setting maxConcurrentChunks for Generic OpenAI embedder 2026-06-05 15:16:36 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4057