mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
refac
This commit is contained in:
parent
40d7e5089d
commit
db0c576f48
@ -81,7 +81,7 @@ async def query_memory(
|
||||
request: Request, form_data: QueryMemoryForm, user=Depends(get_verified_user)
|
||||
):
|
||||
results = VECTOR_DB_CLIENT.search(
|
||||
name=f"user-memory-{user.id}",
|
||||
collection_name=f"user-memory-{user.id}",
|
||||
vectors=[request.app.state.EMBEDDING_FUNCTION(form_data.content)],
|
||||
limit=form_data.k,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user