[PR #692] [MERGED] Add support to upload rawText document via api #3457

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/692
Author: @timothycarambat
Created: 2/7/2024
Status: Merged
Merged: 2/7/2024
Merged by: @timothycarambat

Base: masterHead: 688-raw-text-api-upload


📝 Commits (3)

  • f880d59 Add support to upload rawText document via api
  • ea1fd5c update API doc endpoint with correct textContent key
  • 7b9d6fc update response swagger doc

📊 Changes

6 files changed (+453 additions, -10 deletions)

View changed files

📝 collector/index.js (+24 -0)
collector/processRawText/index.js (+69 -0)
📝 server/endpoints/api/document/index.js (+186 -1)
📝 server/endpoints/api/workspace/index.js (+8 -8)
📝 server/swagger/openapi.json (+146 -1)
📝 server/utils/files/documentProcessor.js (+20 -0)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #688

What is in this change?

Add support to send rawText and metadata values to be used to create a document without the need to upload a document directly.

This endpoint allows you to also define the metadata keys used for the document on creation, unlike the other uploader methods.

v1/document/metadata-schema allows you to see the keys available to set. Setting url to a valid HTTP(s) value will allow the URL to be clicked from a citation in a future update.

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/692 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 2/7/2024 **Status:** ✅ Merged **Merged:** 2/7/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `688-raw-text-api-upload` --- ### 📝 Commits (3) - [`f880d59`](https://github.com/Mintplex-Labs/anything-llm/commit/f880d59d9b45fd43131703c765e46ddba608d9e4) Add support to upload rawText document via api - [`ea1fd5c`](https://github.com/Mintplex-Labs/anything-llm/commit/ea1fd5c21e61dec0c868c92c2d9ec67dadf1ad73) update API doc endpoint with correct textContent key - [`7b9d6fc`](https://github.com/Mintplex-Labs/anything-llm/commit/7b9d6fc326e9f081d559f11ede68c04504a9a154) update response swagger doc ### 📊 Changes **6 files changed** (+453 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `collector/index.js` (+24 -0) ➕ `collector/processRawText/index.js` (+69 -0) 📝 `server/endpoints/api/document/index.js` (+186 -1) 📝 `server/endpoints/api/workspace/index.js` (+8 -8) 📝 `server/swagger/openapi.json` (+146 -1) 📝 `server/utils/files/documentProcessor.js` (+20 -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 #688 ### What is in this change? Add support to send rawText and metadata values to be used to create a document without the need to upload a document directly. This endpoint allows you to also define the metadata keys used for the document on creation, unlike the other uploader methods. `v1/document/metadata-schema` allows you to see the keys available to set. Setting `url` to a valid HTTP(s) value will allow the URL to be clicked from a citation in a future update. ### 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:33:49 -05:00
yindo closed this issue 2026-02-22 18:33:49 -05:00
yindo changed title from [PR #692] Add support to upload rawText document via api to [PR #692] [MERGED] Add support to upload rawText document via api 2026-06-05 15:13:31 -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#3457