summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-01-09 15:49:59 +0300
committerGrail Finder <wohilas@gmail.com>2025-01-09 15:49:59 +0300
commit363bbae2c756f448d8cdac50305902d68d45c26c (patch)
tree4206136d7342006c32e7dbaf2891bce608969427 /bot.go
parent7bbedd93cf078fc7496a6779cf9eda6e588e64c0 (diff)
Fix: RAG updates
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/bot.go b/bot.go
index 4620130..e5d8415 100644
--- a/bot.go
+++ b/bot.go
@@ -138,17 +138,12 @@ func chatRagUse(qText string) (string, error) {
logger.Error("failed to get embs", "error", err, "index", i, "question", q)
continue
}
- // e := &models.EmbeddingResp{
- // Embedding: emb,
- // }
- // vecs, err := ragger.SearchEmb(e)
vecs, err := store.SearchClosest(emb)
if err != nil {
logger.Error("failed to query embs", "error", err, "index", i, "question", q)
continue
}
respVecs = append(respVecs, vecs...)
- // logger.Info("returned vector from query search", "question", q, "vec", vec)
}
// get raw text
resps := []string{}