ragflow
ragflow copied to clipboard
[Feature Request]: Run documents from the API
Is there an existing issue for the same feature request?
- [X] I have checked the existing issues.
Is your feature request related to a problem?
In my software, we do not use the API to upload files, we upload the file to Azure and add the record to the database directly, but as a result, the documents are not run automatically
Describe the feature you'd like
I would like to have a API call to handle documents.
e.g. Cancel, Run...
Today we use the backend call to run our documents:
const response = await axios.request({
url: `${process.env.RAGFLOW_URL}/v1/document/run`,
method: "post",
headers: {
Authorization: ragflowToken,
},
data: {
run: 1,
doc_ids: docIds, // Use the array of document IDs
},
})
Describe implementation you've considered
No response
Documentation, adoption, use case
No response
Additional information
Would be nice to have /api/document/run to run our documents
Please refer to this