mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 22:21:27 -05:00
[PR #2040] [MERGED] fix: do not use hardware ID in document ID generation #7668
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/2040
Author: @akx
Created: 5/7/2024
Status: ✅ Merged
Merged: 5/7/2024
Merged by: @tjbck
Base:
dev← Head:uuid4📝 Commits (1)
61bb1f1fix: do not use hardware ID in document ID generation📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/apps/rag/main.py(+1 -1)📄 Description
Description
uuid.uuid1()uses the machine's hardware ID (among other things) for UUID generation. I see no reason to use partially deterministic IDs here; every other use of UUIDs in the project seems to be using the randomuuid4()function.Changelog Entry
Fixed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.