summaryrefslogtreecommitdiff
path: root/rag/rag.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-13 11:19:49 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-13 11:19:49 +0300
commit4cfe2fe37f3b048bc7fad2e197dd0d49ea4307ce (patch)
tree6ee619d7751df06421ad82fdbb091dae63007faa /rag/rag.go
parent648035b194dd1b8c658a6411b9f9fe19467ccc10 (diff)
Fix: linter complaintsHEADmaster
Diffstat (limited to 'rag/rag.go')
-rw-r--r--rag/rag.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/rag/rag.go b/rag/rag.go
index 3a771d4..18609ef 100644
--- a/rag/rag.go
+++ b/rag/rag.go
@@ -47,7 +47,6 @@ func isStopWord(word string) bool {
func detectPhrases(query string) []string {
words := strings.Fields(strings.ToLower(query))
var phrases []string
-
for i := 0; i < len(words)-1; i++ {
word1 := strings.Trim(words[i], ".,!?;:'\"()[]{}")
word2 := strings.Trim(words[i+1], ".,!?;:'\"()[]{}")
@@ -70,7 +69,6 @@ func detectPhrases(query string) []string {
}
}
}
-
return phrases
}
@@ -122,7 +120,6 @@ func areSlugsAdjacent(slug1, slug2 string) bool {
if prefix1 != prefix2 {
return false
}
-
batch1, chunk1, ok1 := parseSlugIndices(slug1)
batch2, chunk2, ok2 := parseSlugIndices(slug2)
if !ok1 || !ok2 {
@@ -843,7 +840,6 @@ func (r *RAG) GenerateQueryVariations(query string) []string {
}
}
}
-
return variations
}