Added example of AVG [skip ci]

This commit is contained in:
Andrew Kane
2023-03-05 17:54:02 -08:00
parent 4f8620fe9e
commit 68378066a8

View File

@@ -71,6 +71,12 @@ SELECT * FROM items WHERE embedding <-> '[3,1,2]' < 5;
Note: Combine with `ORDER BY` and `LIMIT` to use an index
Get the average of vectors
```sql
SELECT AVG(embedding) FROM items;
```
## Indexing
Speed up queries with an approximate index. Add an index for each distance function you want to use.