diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-18 15:14:13 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-18 15:14:13 +0100 |
| commit | e0de42af0b2c51ed9607a477cbdb556f44bac4f7 (patch) | |
| tree | bc1832b01354a96d13dd3f8b46d60f904e28889a /npc.c | |
| parent | 3145e2d2f565c5da599dd50e9c70b9e9ff3d5965 (diff) | |
| download | llmnpc-e0de42af0b2c51ed9607a477cbdb556f44bac4f7.tar.gz | |
Update to VectorDB
Diffstat (limited to 'npc.c')
| -rw-r--r-- | npc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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(); |
