guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 7403213c9192e3b99bdcbd5e0fb680b36358cb9a
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Oct 16 10:05:01 2025 +0100
gnu: Add python-tortoise-vector.
* gnu/packages/databases.scm (python-tortoise-vector): New variable.
Change-Id: Ib6646bc813fe04ba6e55b2b78dff373d2b52268e
---
gnu/packages/databases.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 9dda410a59..acb26f07d3 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -3933,6 +3933,32 @@ engraved in its design that you are working not with
just tables, you work
with relational data.")
(license license:asl2.0)))
+(define-public python-tortoise-vector
+ (package
+ (name "python-tortoise-vector")
+ (version "0.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "tortoise_vector" version))
+ (sha256
+ (base32 "09607748biibqs5d7q186x09jcpm0126qmvzqnd80yfmiif2ls97"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:tests? #f)) ;no tests
+ (native-inputs
+ (list python-poetry-core
+ python-poetry-dynamic-versioning))
+ (propagated-inputs
+ (list python-tortoise-orm))
+ (home-page "https://github.com/Chr0nos/tortoise_vector")
+ (synopsis "Tortoise-ORM pgvector implementation")
+ (description
+ "This package adds the support of @code{pgvector} vectors to
+Tortoise-ORM as a new type of fields, it helps to filter/order by cosine
+similarity distances for scementic search using embeddings.")
+ (license license:expat)))
+
(define-public aerich
(package
(name "aerich")