Files
trailbase/examples/coffee-vector-search
Sebastian Jeltsch 9e46a099d0 Stop encoding SQL values as generic JSON values (outside the context of the record API), i.e. for admin APIs and between WASM host/guest.
This lets us simplify the parsing and add back a lot of type-safety (including int64). As a side-effect, we basically had to complete reqrite the record insert/update handling in the admin UI.

Note, however, that this is a breaking change, since it touches serialization between WASM guests and host. Guest will need to be built against an updated guest runtime.
2025-10-21 16:40:45 +02:00
..
2025-10-13 15:45:54 +02:00

Coffee Vector Search

A small web application demonstrating the use of TrailBase and its vector search to build a coffee search.

To import the coffee data from CSV, run:

$ mkdir -p traildepot/data
$ cat import.sql | sqlite3 traildepot/data/main.db -

To build the web app

$ pnpm i
$ pnpm build

Finally, to build the docker container:

$ docker build . -t coffee && docker run -p 4001:4000 coffee

Reference