diff options
| author | Grail Finder <wohilas@gmail.com> | 2025-12-10 15:07:06 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2025-12-10 15:07:06 +0300 |
| commit | ad36d1c3e0b545c3e0517ec384087075ad77f63e (patch) | |
| tree | 9a5208f1e9c1b918949bb9322bfcf3abc899c15b /bot.go | |
| parent | 8af2a59a9a12667bae2ce138259d432ba81f8e03 (diff) | |
Fix: rag panics
Diffstat (limited to 'bot.go')
| -rw-r--r-- | bot.go | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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) |
