mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #3413] [CLOSED] Fix building usercontext from memories #21239
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/3413
Author: @jh0ker
Created: 6/24/2024
Status: ❌ Closed
Base:
dev← Head:fix/building-usercontext-from-memories📝 Commits (1)
1f30b63fix: Add all results from queryMemory to userContext📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
src/lib/components/chat/Chat.svelte(+3 -3)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Fixed
Additional Information
After @shadowdoggie found out how to change the number of queried memories from Chroma here, he noticed that models were still only ever referring to a single memory.
I was able to track it down to this part of the code in the frontend that would do a
reduceon an array that seems to always have only one element. The data structure of the return typequeryMemoryin this case is for exampleI should note that this PR by itself does not allow the use of more than one memory, as the value for the number of memories queried remains hard coded to 1. Perhaps something for a future PR.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.