Integrating with Hugging Face 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 AI and LLM models.
Hugging Face is a multimodal language provider that helps in facilitating various natural language processing tasks including, but not limited to translation, summarization, and text generation. This platform, characterized by its sophisticated algorithms, operates as a tool for addressing a spectrum of linguistic challenges with precision and accuracy.
This guide will provide the steps for integrating the Hugging Face provider with Orkes Conductor.
Steps to integrate with Hugging Face
Before beginning to integrate with Hugging Face, you need to generate the API key from Hugging Face.
Get the Hugging Face API key
- Navigate to the Hugging Face platform.
- Create an account or sign up with your existing account.
- Click on your account name from the top-right corner, and click Settings.
- Navigate to Access Tokens and click New token.
- Generate the token by providing a name for the token and choosing the read/write permissions.
- Copy the generated token.
Create Endpoints in Hugging Face
Check out the official documentation on creating endpoints in Hugging Face.
Integrating with Hugging Face as a model provider
Now, you have the API key. 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 AI/LLM section, choose Hugging Face.
- Click +Add and provide the following parameters:
Parameters | Description |
---|---|
Integration name | A name for the integration. |
API Key | The API key copied previously. |
Namespace | The namespace of your hugging face account. You can get the namespace from your account details by navigating to the top right corner of your account and copying the username, which is your namespace. |
Description | A description of your integration. |
- You can toggle-on the Active button to activate the integration instantly.
- Click Save.
Adding Hugging Face models to the integration
Now, you have integrated your Orkes Conductor cluster with the Hugging Face provider. The next step is integrating with the specific models.
Depending on your use case, you must configure different models within your Hugging Face configuration.
To add a new model to the Hugging Face integration:
- Navigate to the integrations page and click the '+' button next to the integration created.
- Click +New model.
- Provide the model name, endpoint (the one you created in the previous step), and an optional description for the model. The complete list of models in Hugging Face is available here.
- Toggle-on the Active button to enable the model 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
Now, the integration with the required models is 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.
Once the integration is ready, start creating workflows with LLM tasks.