mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
refac: "rag" endpoints renamed to "retrieval"
This commit is contained in:
@@ -159,16 +159,13 @@
|
||||
const processFileItem = async (fileItem) => {
|
||||
try {
|
||||
const res = await processDocToVectorDB(localStorage.token, fileItem.id);
|
||||
|
||||
if (res) {
|
||||
fileItem.status = 'processed';
|
||||
fileItem.collection_name = res.collection_name;
|
||||
files = files;
|
||||
}
|
||||
} catch (e) {
|
||||
// Remove the failed doc from the files array
|
||||
// files = files.filter((f) => f.id !== fileItem.id);
|
||||
toast.error(e);
|
||||
// We keep the file in the files list even if it fails to process
|
||||
fileItem.status = 'processed';
|
||||
files = files;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user