[PR #3045] [CLOSED] Add embedding support for message.content which is string/object array type #4210

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3045
Author: @hehua2008
Created: 1/28/2025
Status: Closed

Base: masterHead: feat-content-array-embedding


📝 Commits (1)

  • 727a54f Add embedding support for message.content which is string/object array type

📊 Changes

9 files changed (+181 additions, -10 deletions)

View changed files

📝 server/models/workspaceChats.js (+20 -1)
📝 server/utils/vectorDbProviders/astra/index.js (+20 -1)
📝 server/utils/vectorDbProviders/chroma/index.js (+20 -1)
📝 server/utils/vectorDbProviders/lance/index.js (+21 -2)
📝 server/utils/vectorDbProviders/milvus/index.js (+20 -1)
📝 server/utils/vectorDbProviders/pinecone/index.js (+20 -1)
📝 server/utils/vectorDbProviders/qdrant/index.js (+20 -1)
📝 server/utils/vectorDbProviders/weaviate/index.js (+20 -1)
📝 server/utils/vectorDbProviders/zilliz/index.js (+20 -1)

📄 Description

Pull Request Type

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

Relevant Issues

None

What is in this change?

Add embedding support for message.content which is string/object array type.

Additional Information

https://platform.openai.com/docs/api-reference/chat/create
Screenshot2025-01-29 15 15 24
Screenshot2025-01-29 10 39 44

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • 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/3045 **Author:** [@hehua2008](https://github.com/hehua2008) **Created:** 1/28/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feat-content-array-embedding` --- ### 📝 Commits (1) - [`727a54f`](https://github.com/Mintplex-Labs/anything-llm/commit/727a54f4e54a60a10de704e4cbce31bc4416cdab) Add embedding support for message.content which is string/object array type ### 📊 Changes **9 files changed** (+181 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `server/models/workspaceChats.js` (+20 -1) 📝 `server/utils/vectorDbProviders/astra/index.js` (+20 -1) 📝 `server/utils/vectorDbProviders/chroma/index.js` (+20 -1) 📝 `server/utils/vectorDbProviders/lance/index.js` (+21 -2) 📝 `server/utils/vectorDbProviders/milvus/index.js` (+20 -1) 📝 `server/utils/vectorDbProviders/pinecone/index.js` (+20 -1) 📝 `server/utils/vectorDbProviders/qdrant/index.js` (+20 -1) 📝 `server/utils/vectorDbProviders/weaviate/index.js` (+20 -1) 📝 `server/utils/vectorDbProviders/zilliz/index.js` (+20 -1) </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" --> None ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> Add embedding support for message.content which is string/object array type. ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> https://platform.openai.com/docs/api-reference/chat/create <img width="634" alt="Screenshot2025-01-29 15 15 24" src="https://github.com/user-attachments/assets/2ed0b76e-1073-4e93-815d-023d73a153ec" /> <img width="573" alt="Screenshot2025-01-29 10 39 44" src="https://github.com/user-attachments/assets/ec799be1-8fc7-4916-890a-6a876ae9c2b1" /> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [ ] Relevant documentation has been updated - [x] I have tested my code functionality - [ ] 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:22 -05:00
yindo closed this issue 2026-02-22 18:35:22 -05:00
yindo changed title from [PR #3045] Add embedding support for message.content which is string/object array type to [PR #3045] [CLOSED] Add embedding support for message.content which is string/object array type 2026-06-05 15:17:23 -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#4210