We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8777f47 commit 15fd0f3Copy full SHA for 15fd0f3
1 file changed
README.md
@@ -74,7 +74,7 @@ pqxx::result r = tx.exec("SELECT * FROM items ORDER BY embedding <-> $1 LIMIT 5"
74
Retrieve a vector
75
76
```cpp
77
-auto row = tx.exec("SELECT embedding FROM items LIMIT 1").one_row();
+pqxx::row row = tx.exec("SELECT embedding FROM items LIMIT 1").one_row();
78
auto embedding = row[0].as<pgvector::Vector>();
79
```
80
@@ -136,13 +136,13 @@ int dim = vec.dimensions();
136
Get the indices of non-zero elements
137
138
139
-auto& indices = vec.indices();
+const std::vector<int>& indices = vec.indices();
140
141
142
Get the values of non-zero elements
143
144
145
-auto& values = vec.values();
+const std::vector<float>& values = vec.values();
146
147
148
## History
0 commit comments