θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content

Conversation

@timothycarambat
Copy link
Member

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

@Mintplex-Labs Mintplex-Labs deleted a comment from review-agent-prime bot Feb 7, 2024
@timothycarambat timothycarambat merged commit 48cb8f2 into master Feb 7, 2024
@timothycarambat timothycarambat deleted the 688-raw-text-api-upload branch February 7, 2024 23:17
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
* Add support to upload rawText document via api

* update API doc endpoint with correct textContent key

* update response swagger doc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[API]: Support raw text + metadata uploads

3 participants