From e0de42af0b2c51ed9607a477cbdb556f44bac4f7 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 18 Feb 2026 15:14:13 +0100 Subject: Update to VectorDB --- npc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'npc.c') diff --git a/npc.c b/npc.c index 9129864..335eee7 100644 --- a/npc.c +++ b/npc.c @@ -340,9 +340,9 @@ int main(int argc, char **argv) { VectorDB db = {}; vdb_init(&db, embed_ctx); - int vdb_rc = vdb_load(&db, context_file); - if (vdb_rc != 0) { - log_message(stderr, LOG_ERROR, "Failed to load vector database %s (err %d)", context_file, vdb_rc); + VectorDBErrorCode vdb_rc = vdb_load(&db, context_file); + if (vdb_rc != VDB_SUCCESS) { + log_message(stderr, LOG_ERROR, "Failed to load vector database %s: %s", context_file, vdb_error(vdb_rc)); llama_free(embed_ctx); llama_model_free(model); llama_backend_free(); -- cgit v1.2.3