From 428c45da164e39f0b94569239e3b2796477df095 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Tue, 21 Oct 2025 10:44:07 +0300 Subject: Chore: fix linter complaints --- rag/rag.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rag/rag.go') diff --git a/rag/rag.go b/rag/rag.go index c05d38a..018cd9a 100644 --- a/rag/rag.go +++ b/rag/rag.go @@ -1,6 +1,7 @@ package rag import ( + "errors" "fmt" "gf-lt/config" "gf-lt/models" @@ -108,7 +109,7 @@ func (r *RAG) LoadRAG(fpath string) error { } if len(paragraphs) == 0 { - return fmt.Errorf("no valid paragraphs found in file") + return errors.New("no valid paragraphs found in file") } var ( @@ -222,7 +223,7 @@ func (r *RAG) fetchEmb(lines []string, errCh chan error, vectorCh chan<- []model } if len(embeddings) == 0 { - err := fmt.Errorf("no embeddings returned") + err := errors.New("no embeddings returned") r.logger.Error("empty embeddings") errCh <- err return err -- cgit v1.2.3