diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-02-06 12:42:06 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-02-06 12:42:06 +0300 |
| commit | 4af866079c3f21eab12b02c3158567539ca40c50 (patch) | |
| tree | d428557aae121ba89e66c728240723a9c4e718ec /rag | |
| parent | 478a505869bf26b15dcbc77feb2c09c1f2ff4aac (diff) | |
Chore: linter complaints
Diffstat (limited to 'rag')
| -rw-r--r-- | rag/rag.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -107,7 +107,7 @@ func (r *RAG) LoadRAG(fpath string) error { } // Adjust batch size if needed - if len(paragraphs) < int(r.cfg.RAGBatchSize) && len(paragraphs) > 0 { + if len(paragraphs) < r.cfg.RAGBatchSize && len(paragraphs) > 0 { r.cfg.RAGBatchSize = len(paragraphs) } @@ -133,7 +133,7 @@ func (r *RAG) LoadRAG(fpath string) error { ctn := 0 totalParagraphs := len(paragraphs) for { - if int(right) > totalParagraphs { + if right > totalParagraphs { batchCh <- map[int][]string{left: paragraphs[left:]} break } |
