mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-18 21:11:48 -05:00
[PR #3464] [CLOSED] feat: reduce document selection overhead #8044
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/3464
Author: @jonathan-rohde
Created: 6/27/2024
Status: ❌ Closed
Base:
dev← Head:feat/reduce-document-selection-overhead📝 Commits (3)
954622bfeat(chat): Reduce request size to attach file to chat3925e78feat(chat): formatting4d681ecfeat(chat): rebase changes📊 Changes
6 files changed (+82 additions, -21 deletions)
View changed files
📝
backend/apps/rag/utils.py(+17 -5)📝
backend/apps/webui/models/documents.py(+9 -0)📝
src/lib/components/chat/Chat.svelte(+12 -4)📝
src/lib/components/chat/MessageInput.svelte(+1 -1)📝
src/lib/components/chat/MessageInput/Documents.svelte(+13 -10)📝
src/lib/components/chat/Messages/UserMessage.svelte(+30 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Changed
Additional Information
Headers before the change. Request size is 88785. Also the UI was a bit lagging around with computing the payload

Headers after the change. Request size is just 237. UI is very usable

Payload before the change. Quite a long list of checksum in payload

Payload after the change. Just the collection type is required

Timing before the change. Processing the request took 35s

Timing after the change. Processing the request took 8s. Side note: I did also a prove of concept by using just one single collection in ChromaDB and got the request down to under a second (after filling some caches, which is not possible storing it in different collections)

Script used to create the files
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.