diff options
| author | sigoden <sigoden@gmail.com> | 2025-02-21 14:59:14 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-21 14:59:14 +0800 |
| commit | 3dd90e1e95c478cc9d92b587d44e9215d4b19a7e (patch) | |
| tree | da98bf6bd8b9fd46dacb2f6d6e09230c97d45533 /src/rag | |
| parent | d1c603c50912873445b7108e7f71263a8da7e955 (diff) | |
| download | aichat-3dd90e1e95c478cc9d92b587d44e9215d4b19a7e.tar.gz | |
fix: incorrect model when switching role in session context (#1192)
Diffstat (limited to 'src/rag')
| -rw-r--r-- | src/rag/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |
