Skip to content

Commit a03a9a6

Browse files
committed
Updated SQLAlchemy example [skip ci]
1 parent 0705e3a commit a03a9a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Average vectors
173173
```python
174174
from sqlalchemy.sql import func
175175

176-
session.query(func.avg(Item.embedding)).first()[0]
176+
session.scalars(select(func.avg(Item.embedding))).first()
177177
```
178178

179179
Also supports `sum`

0 commit comments

Comments
 (0)