mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-26 01:06:27 +02:00
start website
This commit is contained in:
parent
f7eb1ee696
commit
a2c207347e
23 changed files with 2593 additions and 58 deletions
42
site/index.md
Normal file
42
site/index.md
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
---
|
||||
# https://vitepress.dev/reference/default-theme-home-page
|
||||
layout: home
|
||||
|
||||
hero:
|
||||
name: "sqlite-vec"
|
||||
text: ""
|
||||
tagline: A vector search SQLite extension that runs anywhere!
|
||||
actions:
|
||||
- theme: brand
|
||||
text: Getting Started
|
||||
link: /markdown-examples
|
||||
- theme: alt
|
||||
text: API Reference
|
||||
link: /api-reference
|
||||
|
||||
features:
|
||||
- title: Runs everywhere
|
||||
details: On the server, in the browser with WASM, mobile devices, and more!
|
||||
- title: Bindings for many languages
|
||||
details: Python, Ruby, Node.js/Deno/Bun, Go, Rust, and more!
|
||||
- title: Only SQL
|
||||
details: No extra configuration or server, only CREATE/INSERT/SELECTs
|
||||
---
|
||||
|
||||
```sqlite
|
||||
create virtual table vec_movies using vec0(
|
||||
synopsis_embedding float[768]
|
||||
);
|
||||
|
||||
insert into vec_movies(rowid, synopsis_embedding)
|
||||
select
|
||||
rowid,
|
||||
embed(synopsis) as synopsis_embedding
|
||||
from movies;
|
||||
|
||||
select rowid, distance
|
||||
from vec_movies
|
||||
where synopsis_embedding match embed('scary futuristic movies')
|
||||
order by distance
|
||||
limit 20;
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue