Skip to content

Instantly share code, notes, and snippets.

@vedovelli
Created May 4, 2025 20:54
Show Gist options
  • Save vedovelli/c4477c424c41e6890075f8990f4b715a to your computer and use it in GitHub Desktop.
Save vedovelli/c4477c424c41e6890075f8990f4b715a to your computer and use it in GitHub Desktop.
Instrução SQL criação tabela de embeddings
CREATE TABLE task_embeddings (
id INTEGER PRIMARY KEY AUTOINCREMENT,
chunk_content TEXT NOT NULL,
task_id INTEGER NOT NULL REFERENCES tasks (id) ON DELETE CASCADE,
embedding F32_BLOB (3072) NOT NULL
);
CREATE INDEX task_embeddings_idx ON task_embeddings (libsql_vector_idx (embedding));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment