Integrating with Postgres Vector Database in Orkes Conductor
To effectively utilize AI and LLM tasks in Orkes Conductor, it's essential to integrate your Orkes Conductor cluster with the necessary Vector Database models.
PGvector is a popular open-source extension for PostgreSQL known for its efficiency and versatility in handling large-scale vector data. This integration empowers you to access, query, and manipulate vector data effectively, enhancing the capabilities of Orkes Conductor in various natural language processing and artificial intelligence applications.
This guide will provide the steps for integrating Postgres as a Vector Database with Orkes Conductor.
Steps to integrate with Postgres Database
Before beginning to integrate with Postgres, you need to get specific configuration parameters from Postgres, such as database username, password, and URL. Now, let’s integrate this with Orkes Conductor.
- Navigate to Integrations from the left menu on your Orkes Conductor cluster.
- Click +New integration button from the top-right corner.
- Under the Vector Databases section, choose Postgres Vector Database.
- Click +Add and provide the following parameters:
Parameters | Description |
---|---|
Integration name | A name for the integration. |
Postgres Database User | The database username. |
Postgres Database Password | The password associated with the database username. |
Postgres Database URL | The database URL. |
Embedding dimensions | The number of dimensions in the embeddings. The embedding dimensions often depend on the AI model used to generate the embeddings. |
Distance metric | Choose the distance metric, which is a metric to measure the similarity or distance between vectors. Supported values:
|
Indexing method | Choose the indexing method. Supported methods:
|
Number of inverted lists to create for ivfflat index | The number of inverted lists to create when using the ivfflat indexing method. This parameter is only relevant if ivfflat is chosen as the indexing method. |
Description | A description of your integration. |
- You can toggle-on the Active button to activate the integration instantly.
- Click Save.
Adding Indexes to Postgres Integration
Now that you have integrated your Orkes Conductor cluster with the Postgres provider, the next step is to integrate with the specific indexes.
To add a new index to the Postgres integration:
- Navigate to the integrations page and click the '+' button next to the integration you created.
- Click +New Index.
- Provide the index name and an optional description.
- Toggle-on the Active button to enable immediately.
- Click Save.
This ensures the integration model is saved for future use in LLM tasks within Orkes Conductor.
RBAC - Governance on who can use Integrations
The integration with the required models is now ready. Next, we should determine the access control to these models.
The permission can be granted to applications/groups within the Orkes Conductor cluster.
To provide explicit permission to Groups:
- Navigate to Access Control > Groups from the left menu on your Orkes Conductor cluster.
- Create a new group or choose an existing group.
- Under the Permissions section, click +Add Permission.
- Under the Integrations tab, select the required integrations with the required permissions.
- Click Add Permissions. This ensures that all the group members can access these integration models in their workflows.
Similarly, you can also provide permissions to applications.