tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
9.54k stars 252 forks source link

refine errors for vector search #1610

Closed sivukhin closed 2 months ago

sivukhin commented 2 months ago

Context

In order to boost DX we better to make errors messages concise and clean. This PR slightly improve details of errors message around vector/vectorIndex features + adds simple common structure for them like this:

  1. vector: prefixes all errors about plain vectors
  2. vector index: prefixes all errors during vector index creation stage
  3. vector index(insert/delete/search): prefixes all errors during corresponding vector index operation