Skip to main content

Mongo 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 Atlas Vector Search from MongoDB with Orkes Conductor. Here’s an overview:

  1. Get the required credentials from Atlas Vector Search.
  2. Configure a new Mongo 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 Atlas Vector Search credentials

Set up Atlas Vector Search and retrieve the required credentials, including the MongoDB Atlas connection string and database name.

Step 2: Add an integration for Mongo Vector Database

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

To create a Mongo 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 Mongo Vector Database.
  4. Select + Add and enter the following parameters:
ParametersDescription
Integration nameA name for the integration.
MongoDB Atlas connection stringThe MongoDB Atlas connection string, in the format: mongodb+srv://username:password@cluster0.mongodb.net/
Database nameThe database name to store and query vector data.
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
  • Dot Product
Number of nearest neighboursThe number of nearest neighbors to be used during the search.
DescriptionA description of the integration.

Mongo 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 Mongo Vector Database indexes

Once you’ve integrated the Mongo 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 MongoDB Integration

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

Create Indexes for MongoDB 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 Mongo 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