You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ba9f4ef
Browse filesBrowse the repository at this point in the historyBrowse files
feat: Enable other distance metrics for Vector DB and Update docs (#4170)
* updated PGVector docs
Signed-off-by: Francisco Javier Arceo <[email protected]>
* adding distance metric to arguments and defaulting to L2
Signed-off-by: Francisco Javier Arceo <[email protected]>
* linter
Signed-off-by: Francisco Javier Arceo <[email protected]>
* testing other distance metric
Signed-off-by: Francisco Javier Arceo <[email protected]>
* updated default
Signed-off-by: Francisco Javier Arceo <[email protected]>
* linter
Signed-off-by: Francisco Javier Arceo <[email protected]>
* fixed some copy
Signed-off-by: Francisco Javier Arceo <[email protected]>
* updated
Signed-off-by: Francisco Javier Arceo <[email protected]>
---------
Signed-off-by: Francisco Javier Arceo <[email protected]>
Copy file name to clipboardExpand all lines: docs/reference/online-stores/postgres.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,10 +65,16 @@ To compare this set of functionality against other online stores, please see the
65
65
66
66
## PGVector
67
67
The Postgres online store supports the use of [PGVector](https://github.com/pgvector/pgvector) for storing feature values.
68
-
To enable PGVector, set `pgvector_enabled: true` in the online store configuration.
68
+
To enable PGVector, set `pgvector_enabled: true` in the online store configuration.
69
+
69
70
The `vector_len` parameter can be used to specify the length of the vector. The default value is 512.
70
71
71
-
Then you can use `retrieve_online_documents` to retrieve the top k closest vectors to a query vector.
72
+
Please make sure to follow the instructions in the repository, which, as the time of this writing, requires you to
73
+
run `CREATE EXTENSION vector;` in the database.
74
+
75
+
76
+
Then you can use `retrieve_online_documents` to retrieve the top k closest vectors to a query vector.
77
+
For the Retrieval Augmented Generation (RAG) use-case, you have to embed the query prior to passing the query vector.
0 commit comments