pgvector
Postgres extension.
Setup
To work with TypeORM, you need to install thetypeorm
and pg
packages:
npm
npm
npm
Setup a pgvector
self hosted instance with docker-compose
pgvector
provides a prebuilt Docker image that can be used to quickly setup a self-hosted Postgres instance.
Create a file below named docker-compose.yml
:
docker-compose.yml
docker compose up
to start the container.
You can find more information on how to setup pgvector
in the official repository.
Usage
One complete example of usingTypeORMVectorStore
is the following:
Related
- Vector store conceptual guide
- Vector store how-to guides