Model an event table.
Store a support event with searchable text, document fields and an embedding.
CREATE TABLE IF NOT EXISTS app.events (
tenant text,
id text,
status text,
created_at bigint,
body text,
doc document,
embedding vector<float, 2>,
PRIMARY KEY (tenant, id)
);Create the app keyspace before running this example.
Read the query guide