[PR #4359] [MERGED] Export image support for JSON and JSONL #4598

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4359
Author: @shatfield4
Created: 9/2/2025
Status: Merged
Merged: 9/3/2025
Merged by: @timothycarambat

Base: masterHead: 4355-feat-include-image-in-qa-pair-exports


📝 Commits (4)

  • 474d425 export image support for json and jsonl
  • fffe2aa add tests and cleanup functionality
  • de44721 add test for convertTo prepare function
  • 10a30fd comment

📊 Changes

2 files changed (+294 additions, -8 deletions)

View changed files

server/__tests__/utils/helpers/convertTo.test.js (+238 -0)
📝 server/utils/helpers/chat/convertTo.js (+56 -8)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #4355

What is in this change?

  • Add support for exporting images in JSON and JSONL
  • Follows Unsloth's VLM fine tuning format in JSONL
  • Adds image key to JSON export allowing for array of images

Additional Information

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/4359 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 9/2/2025 **Status:** ✅ Merged **Merged:** 9/3/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `4355-feat-include-image-in-qa-pair-exports` --- ### 📝 Commits (4) - [`474d425`](https://github.com/Mintplex-Labs/anything-llm/commit/474d4252b28bbfa4a7216ed769de61098eec1c6a) export image support for json and jsonl - [`fffe2aa`](https://github.com/Mintplex-Labs/anything-llm/commit/fffe2aaf2914fff9d9ce3c19284ea25c6552556e) add tests and cleanup functionality - [`de44721`](https://github.com/Mintplex-Labs/anything-llm/commit/de44721b7ab7b777333d7ca3bb80c247e4ad7de8) add test for convertTo prepare function - [`10a30fd`](https://github.com/Mintplex-Labs/anything-llm/commit/10a30fd56ff7f585b5d07beae399bed1116d777a) comment ### 📊 Changes **2 files changed** (+294 additions, -8 deletions) <details> <summary>View changed files</summary> ➕ `server/__tests__/utils/helpers/convertTo.test.js` (+238 -0) 📝 `server/utils/helpers/chat/convertTo.js` (+56 -8) </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 #4355 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Add support for exporting images in JSON and JSONL - Follows [Unsloth's VLM fine tuning format](https://docs.unsloth.ai/basics/vision-fine-tuning) in JSONL - Adds `image` key to JSON export allowing for array of images ### 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:36:09 -05:00
yindo closed this issue 2026-02-22 18:36:09 -05:00
yindo changed title from [PR #4359] Export image support for JSON and JSONL to [PR #4359] [MERGED] Export image support for JSON and JSONL 2026-06-05 15:19:22 -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#4598