summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-12-10 15:07:06 +0300
committerGrail Finder <wohilas@gmail.com>2025-12-10 15:07:06 +0300
commitad36d1c3e0b545c3e0517ec384087075ad77f63e (patch)
tree9a5208f1e9c1b918949bb9322bfcf3abc899c15b /bot.go
parent8af2a59a9a12667bae2ce138259d432ba81f8e03 (diff)
Fix: rag panics
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/bot.go b/bot.go
index 1988969..5c8ca1e 100644
--- a/bot.go
+++ b/bot.go
@@ -429,13 +429,11 @@ func chatRagUse(qText string) (string, error) {
logger.Error("failed to get embs", "error", err, "index", i, "question", q)
continue
}
-
// Create EmbeddingResp struct for the search
embeddingResp := &models.EmbeddingResp{
Embedding: emb,
Index: 0, // Not used in search but required for the struct
}
-
vecs, err := ragger.SearchEmb(embeddingResp)
if err != nil {
logger.Error("failed to query embs", "error", err, "index", i, "question", q)