mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
gnu: Add pgvector.
* gnu/packages/databases.scm (pgvector): New variable. Change-Id: I07b87956edc4c32d2ff1af2995a2a965fddf4ab7
This commit is contained in:
parent
bb2703194e
commit
63f9e7deaf
1 changed files with 38 additions and 0 deletions
|
@ -1480,6 +1480,44 @@ (define-public timescaledb
|
||||||
(partitioning key), as well as full SQL support.")
|
(partitioning key), as well as full SQL support.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define-public pgvector
|
||||||
|
(package
|
||||||
|
(name "pgvector")
|
||||||
|
(version "0.6.0")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/pgvector/pgvector")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"19zcjrlmyj7gfbn8prh014yq50iy4dg97pirsm7idxsr829vwyc5"))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
;; Do not use -march=native
|
||||||
|
#:make-flags
|
||||||
|
#~(list "OPTFLAGS="
|
||||||
|
(string-append "DESTDIR=" #$output))
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(delete 'configure))))
|
||||||
|
(inputs (list postgresql))
|
||||||
|
(home-page "https://github.com/pgvector/pgvector")
|
||||||
|
(synopsis "Vector similarity search for Postgres")
|
||||||
|
(description
|
||||||
|
"This package provides a vector similarity search extension for Postgres.
|
||||||
|
Store your vectors with the rest of your data. It supports:
|
||||||
|
|
||||||
|
@itemize
|
||||||
|
@item exact and approximate nearest neighbor search;
|
||||||
|
@item L2 distance, inner product, and cosine distance;
|
||||||
|
@item any language with a Postgres client.
|
||||||
|
@end itemize
|
||||||
|
")
|
||||||
|
(license (license:x11-style "file://COPYRIGHT"))))
|
||||||
|
|
||||||
(define-public pgloader
|
(define-public pgloader
|
||||||
(package
|
(package
|
||||||
(name "pgloader")
|
(name "pgloader")
|
||||||
|
|
Loading…
Reference in a new issue