Download the PHP package partitech/doctrine-pgvector without Composer
On this page you can find all versions of the php package partitech/doctrine-pgvector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download partitech/doctrine-pgvector
More information about partitech/doctrine-pgvector
Files in partitech/doctrine-pgvector
Download partitech/doctrine-pgvector
More information about partitech/doctrine-pgvector
Files in partitech/doctrine-pgvector
Vendor partitech
Package doctrine-pgvector
Short Description Postgresql vector type with doctrine
License MIT
Package doctrine-pgvector
Short Description Postgresql vector type with doctrine
License MIT
Please rate this library. Is it a good library?
Informations about the package doctrine-pgvector
PGVector for Doctrine
Description
PGVector type for Doctrine
Installation
Configuration Doctrine
Utilisation
You can now use vector
type in your entities :
If you use symfony console make:entity
add manually the length
parameter attribute as vector. Length is your model embedding's dimension.
For example OpenAi use these dimensions:
text-embedding-3-small : 1536
text-embedding-3-large : 3072 (customizable)
Mistral AI
Mistral-embed : 1024
Additionally, you should manually add an HNSW index to your vector's column. Be aware that dimension should be 2000 max for HNSW indexes.
L2 distance
Inner product
Cosine distance
Basic usage:
distance
To get
use
Inner product
To get
use
Cosine similarity
To get
use
All versions of doctrine-pgvector with dependencies
PHP Build Version
Package Version
The package partitech/doctrine-pgvector contains the following files
Loading the files please wait ....