diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-02-10 11:05:09 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-02-10 11:05:09 +0300 |
| commit | 875de679cf4732bbd70361d826d65d9d8b190add (patch) | |
| tree | e4ad90c2bdde747ad057e4e7d6e850c3173018fd /rag/rag.go | |
| parent | 3b542421e35180db9b9f972ee973befc42f1a46f (diff) | |
| parent | 37b98ad36cd7e63d96a190017b78fe35143a2e6a (diff) | |
Merge branch 'feat/char-secrets'
Diffstat (limited to 'rag/rag.go')
| -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 } |
