From 3dd90e1e95c478cc9d92b587d44e9215d4b19a7e Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 21 Feb 2025 14:59:14 +0800 Subject: fix: incorrect model when switching role in session context (#1192) --- src/rag/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rag/mod.rs') diff --git a/src/rag/mod.rs b/src/rag/mod.rs index 93a43c8..f799b3d 100644 --- a/src/rag/mod.rs +++ b/src/rag/mod.rs @@ -841,7 +841,7 @@ impl Debug for DocumentId { impl DocumentId { pub fn new(file_index: usize, document_index: usize) -> Self { - let value = file_index << (usize::BITS / 2) | document_index; + let value = (file_index << (usize::BITS / 2)) | document_index; Self(value) } -- cgit v1.2.3