Skip to main content

Postgres Vector Database Integration with Orkes Conductor

To use system AI tasks in Orkes Conductor, you must integrate your Conductor cluster with the necessary vector database providers. This guide explains how to integrate Postgres Vector Database (pgvector) with Orkes Conductor. Here’s an overview:

  1. Get the required credentials from pgvector.
  2. Configure a new Postgres Vector Database integration in Orkes Conductor.
  3. Add indexes to the integration.
  4. Set access limits to the vector database to govern which applications or groups can use them.

Step 1: Get the pgvector credentials

Set up pgvector and retrieve the following database credentials:

  • Database username
  • Password
  • Database URL

Step 2: Add an integration for Postgres Vector Database

After obtaining the credentials, add a Postgres Vector Database integration to your Conductor cluster.

To create a Postgres Vector Database integration:

  1. Go to Integrations from the left navigation menu on your Conductor cluster.
  2. Select + New integration.
  3. In the Vector Databases section, choose Postgres Vector Database.
  4. Select + Add and enter the following parameters:
ParametersDescription
Integration nameA name for the integration.
Postgres Database UserThe database username.
Postgres Database PasswordThe password associated with the database username.
Postgres Database URLThe database URL, which is the JDBC connection string for the postgres database.
Embedding dimensionsThe number of dimensions in the embeddings. The embedding dimensions often depend on the AI model used to generate the embeddings.
Distance metricThe distance metric, which is a metric to measure the similarity or distance between vectors. Supported values:
  • Cosine Similarity
  • Euclidean Distance
  • Inner Product
Indexing methodThe indexing method. Supported methods:
  • hnsv (Hierarchical Navigable Small World graphs)
  • ivfflat (Inverted File Flat)
Number of inverted lists to create for ivfflat indexIf ivfflat is selected as the indexing method, enter the number of inverted lists to create when using this indexing method.
DescriptionA description of the integration.

Postgres Vector Database Integration with Orkes Conductor

  1. (Optional) Toggle the Active button off if you don’t want to activate the integration instantly.
  2. Select Save.

Step 3: Add Postgres Vector Database indexes

Once you’ve integrated Postgres Vector Database, the next step is to configure specific indexes.

To add an index to the integration:

  1. Go to the Integrations page and select the + button next to the integration created.

Create Indexes for Postgres Integration

  1. Select + New Index.
  2. Enter the Index name and a Description.

Create Indexes for Postgres Integration Model

  1. (Optional) Toggle the Active button off if you don’t want to activate the index instantly.
  2. Select Save.

This saves the index for future use in AI tasks within Orkes Conductor.

Step 4: Set access limits to integration

Once the integration is configured, set access controls to manage which applications or groups can use the Pinecone databases.

To provide access to an application or group:

  1. Go to Access Control > Applications or Groups from the left navigation menu on your Conductor cluster.
  2. Create a new group/application or select an existing one.
  3. In the Permissions section, select + Add Permission.
  4. In the Integration tab, select the required vector database providers and toggle the necessary permissions.
  5. Select Add Permissions.

Add Permissions for Postgres Vector Database Integration

The group or application can now access the vector database according to the configured permissions. With the integration in place, you can now create workflows using AI/LLM tasks.

info

To store data in a vector database, an embedding is to be generated by an AI model. You must also integrate an AI model provider of your choice to use this integration in workflows.

More resources