Skip to content

Commit 15fd0f3

Browse files
committed
Updated readme [skip ci]
1 parent 8777f47 commit 15fd0f3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pqxx::result r = tx.exec("SELECT * FROM items ORDER BY embedding <-> $1 LIMIT 5"
7474
Retrieve a vector
7575

7676
```cpp
77-
auto row = tx.exec("SELECT embedding FROM items LIMIT 1").one_row();
77+
pqxx::row row = tx.exec("SELECT embedding FROM items LIMIT 1").one_row();
7878
auto embedding = row[0].as<pgvector::Vector>();
7979
```
8080

@@ -136,13 +136,13 @@ int dim = vec.dimensions();
136136
Get the indices of non-zero elements
137137

138138
```cpp
139-
auto& indices = vec.indices();
139+
const std::vector<int>& indices = vec.indices();
140140
```
141141

142142
Get the values of non-zero elements
143143

144144
```cpp
145-
auto& values = vec.values();
145+
const std::vector<float>& values = vec.values();
146146
```
147147

148148
## History

0 commit comments

Comments
 (0)