From 461d19aa2512fea7ac07e50c3178609850ef07c3 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Tue, 31 Dec 2024 13:25:13 +0300 Subject: Feat: add rag [wip; skip-ci] --- bot.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bot.go') diff --git a/bot.go b/bot.go index b815be9..3ee6277 100644 --- a/bot.go +++ b/bot.go @@ -278,6 +278,9 @@ func init() { // logger = slog.New(slog.NewTextHandler(logfile, nil)) store = storage.NewProviderSQL("test.db", logger) + if store == nil { + os.Exit(1) + } // https://github.com/coreydaley/ggerganov-llama.cpp/blob/master/examples/server/README.md // load all chats in memory if _, err := loadHistoryChats(); err != nil { -- cgit v1.2.3