pgvector-pgvector

Namespace

pgvector-pgvector

Description:
  • Enhance your database with pgvector's robust vector similarity search integrated into Postgres. Effortlessly manage vectors alongside traditional data and execute advanced nearest neighbor searches with ease.

Author:

Methods

(async, static) createPgvectorPgvectorInstance(context, body) → {PgvectorPgvector}

Description:
  • Create a new Postgres Vector instance

Example
import { Context } from '@osaas/client-core';
import { createPgvectorPgvectorInstance } from '@osaas/client-services';

const ctx = new Context();
const body: PgvectorPgvectorConfig = { name: 'myinstance', ... };
const instance = await createPgvectorPgvectorInstance(ctx, body);
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

body PgvectorPgvectorConfig

Service instance configuration

Returns:
  • Service instance
Type
PgvectorPgvector

(async, static) getPgvectorPgvectorInstance(context, name) → {PgvectorPgvector}

Description:
  • Get a Postgres Vector instance

Example
import { Context } from '@osaas/client-core';
import { getPgvectorPgvectorInstance } from '@osaas/client-services';

const ctx = new Context();
const instance = await getPgvectorPgvectorInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the database to be retrieved

Returns:
  • Service instance
Type
PgvectorPgvector

(async, static) removePgvectorPgvectorInstance(context, name)

Description:
  • Remove a Postgres Vector instance

Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the database to be removed