Connector Details
Type
Virtual machines, Single VM , BYOL
Runs on
Google Compute Engine
Last Update
24 October, 2024
Category
Financial services
Hugging Face Connector
Connector Details
Type
Virtual machines, Single VM , BYOL
Runs on
Google Compute Engine
Last Update
24 October, 2024
Category
Financial services
Overview
The Hugging Face Connector enables seamless integration with the Hugging Face Hub, providing access to machine learning models, datasets, applications (Spaces), and related metadata without requiring authentication for public resources. This connector is ideal for building AI-powered applications, data analysis pipelines, model evaluation platforms, and community-driven tools.
Integration Overview
This document provides a detailed guide for each integration action point, its purpose, configuration, and workflow support using the Hugging Face connector.
Supported Integration Action Points
Detailed Integration Documentation
DELETE_/api/collections/{namespace}/{slug}-{id}
Action
DELETE_/api/collections/{namespace}/{slug}-{id}
Purpose
Deletes a specific collection from the Hugging Face Hub.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute DELETE_/api/collections/huggingface/my-collection-123 with Accept=application/json.
3. Process the response to confirm collection deletion in a management dashboard.
DELETE_/api/collections/{namespace}/{slug}-{id}/items/{item_id}
Action
DELETE_/api/collections/{namespace}/{slug}-{id}/items/{item_id}
Purpose
Removes an item from a specific collection.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute DELETE_/api/collections/huggingface/my-collection-123/items/model/bert-base-uncased with Accept=application/json.
3. Process the response to update the collection view.
DELETE_/api/organizations/{name}/resource-groups/{resourceGroupId}
Action
DELETE_/api/organizations/{name}/resource-groups/{resourceGroupId}
Purpose
Deletes a resource group from an organization.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute DELETE_/api/organizations/huggingface/resource-groups/rg123 with Accept=application/json.
3. Process the response to update organization settings.
DELETE_/api/organizations/{name}/resource-groups/{resourceGroupId}/users/{username}
Action
DELETE_/api/organizations/{name}/resource-groups/{resourceGroupId}/users/{username}
Purpose
Removes a user from a resource group.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute DELETE_/api/organizations/huggingface/resource-groups/rg123/users/user1 with Accept=application/json.
3. Process the response to update resource group membership.
DELETE_/api/repos/delete
Action
DELETE_/api/repos/delete
Purpose
Deletes a repository from the Hugging Face Hub.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute DELETE_/api/repos/delete with name=bert-base-uncased, type=model, Accept=application/json.
3. Process the response to confirm repository deletion.
GET_/api/{repo_type}/{namespace}/{repo}/resource-group
Action
GET_/api/{repo_type}/{namespace}/{repo}/resource-group
Purpose
Retrieves a repository’s resource group details.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute GET_/api/models/huggingface/bert-base-uncased/resource-group with Accept=application/json.
3. Process the response to display resource group details.
GET_/api/arxiv/{arxiv_id}/repos
Action
GET_/api/arxiv/{arxiv_id}/repos
Purpose
Retrieves repositories linked to a paper.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/arxiv/2205.12345/repos with Accept=application/json.
3. Process the response to display linked repositories in a research dashboard.
GET_/api/collections
Action
GET_/api/collections
Purpose
Retrieves a list of collections from the Hub.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/collections with q=nlp, limit=10, Accept=application/json.
3. Process the response to display collections in a curated list.
GET_/api/collections/{namespace}/{slug}-{id}
Action
GET_/api/collections/{namespace}/{slug}-{id}
Purpose
Retrieves details of a specific collection.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/collections/huggingface/my-collection-123 with Accept=application/json.
3. Process the response to display collection details.
GET_/api/daily_papers
Action
GET_/api/daily_papers
Purpose
Retrieves daily curated papers.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/daily_papers with date=2025-05-31, Accept=application/json.
3. Process the response to display papers in a research feed.
GET_/api/datasets
Action
GET_/api/datasets
Purpose
Retrieves a list of datasets from the Hub.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/datasets with search=squad, limit=10, Accept=application/json.
3. Process the response to display datasets in a data explorer.
GET_/api/datasets-tags-by-type
Action
GET_/api/datasets-tags-by-type
Purpose
Retrieves all dataset tags.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/datasets-tags-by-type with Accept=application/json.
3. Process the response to populate dataset filtering options.
GET_/api/datasets/{repo_id}
Action
GET_/api/datasets/{repo_id}
Purpose
Retrieves details of a specific dataset.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/datasets/squad with full=true, Accept=application/json.
3. Process the response to display dataset metadata.
GET_/api/datasets/{repo_id}/croissant
Action
GET_/api/datasets/{repo_id}/croissant
Purpose
Retrieves Croissant metadata for a dataset.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/datasets/squad/croissant with Accept=application/json.
3. Process the response to integrate Croissant metadata.
GET_/api/datasets/{repo_id}/parquet
Action
GET_/api/datasets/{repo_id}/parquet
Purpose
Retrieves a list of parquet files for a dataset.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/datasets/squad/parquet with Accept=application/json.
3. Process the response to manage parquet files.
GET_/api/datasets/{repo_id}/parquet/{subset}
Action
GET_/api/datasets/{repo_id}/parquet/{subset}
Purpose
Retrieves parquet files for a dataset subset.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/datasets/squad/parquet/default with Accept=application/json.
3. Process the response to manage subset parquet files.
GET_/api/datasets/{repo_id}/parquet/{subset}/{split}
Action
GET_/api/datasets/{repo_id}/parquet/{subset}/{split}
Purpose
Retrieves parquet files for a dataset subset and split.
Parameters
subset: Dataset subset (string, e.g., default).
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/datasets/squad/parquet/default/train with Accept=application/json.
3. Process the response to manage split parquet files.
GET_/api/datasets/{repo_id}/parquet/{subset}/{split}/{n}.parquet
Action
GET_/api/datasets/{repo_id}/parquet/{subset}/{split}/{n}.parquet
Purpose
Retrieves a specific parquet shard for a dataset.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/datasets/squad/parquet/default/train/0.parquet with Accept=application/octet-stream.
3. Process the response to download the parquet shard.
GET_/api/datasets/{repo_id}/revision/{revision}
Action
GET_/api/datasets/{repo_id}/revision/{revision}
Purpose
Retrieves details of a specific dataset revision.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/datasets/squad/revision/main with full=true, Accept=application/json.
3. Process the response to display revision details.
GET_/api/models
Action
GET_/api/models
Purpose
Retrieves a list of models from the Hub.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/models with search=bert, limit=10, Accept=application/json.
3. Process the response to display models in a selection dashboard.
GET_/api/models-tags-by-type
Action
GET_/api/models-tags-by-type
Purpose
Retrieves all model tags.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/models-tags-by-type with Accept=application/json.
3. Process the response to populate model filtering options.
GET_/api/models/{repo_id}
Action
GET_/api/models/{repo_id}
Purpose
Retrieves details of a specific model.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/models/bert-base-uncased with Accept=application/json.
3. Process the response to display model metadata.
GET_/api/models/{repo_id}/revision/{revision}
Action
GET_/api/models/{repo_id}/revision/{revision}
Purpose
Retrieves details of a specific model revision.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/models/bert-base-uncased/revision/main with Accept=application/json.
3. Process the response to display revision details.
GET_/api/organizations/{name}/resource-groups
Action
GET_/api/organizations/{name}/resource-groups
Purpose
Retrieves all resource groups in an organization.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/organizations/huggingface/resource-groups with Accept=application/json.
3. Process the response to display resource groups.
GET_/api/organizations/{name}/resource-groups/{resourceGroupId}
Action
GET_/api/organizations/{name}/resource-groups/{resourceGroupId}
Purpose
Retrieves details of a specific resource group.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/organizations/huggingface/resource-groups/rg123 with Accept=application/json.
3. Process the response to display resource group details.
GET_/api/organizations/{organization_name}/members
Action
GET_/api/organizations/{organization_name}/members
Purpose
Retrieves members of an organization.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute GET_/api/organizations/huggingface/members with Accept=application/json.
3. Process the response to display organization members.
GET_/api/papers/{arxiv_id}
Action
GET_/api/papers/{arxiv_id}
Purpose
Retrieves metadata for a specific paper.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/papers/2205.12345 with Accept=application/json.
3. Process the response to display paper metadata.
GET_/api/spaces
Action
GET_/api/spaces
Purpose
Retrieves a list of Spaces from the Hub.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/spaces with search=gradio, limit=10, Accept=application/json.
3. Process the response to display Spaces in an application gallery.
GET_/api/spaces/{repo_id}
Action
GET_/api/spaces
Purpose
Retrieves details of a specific Space.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/spaces/huggingface/demo with Accept=application/json.
3. Process the response to display Space metadata.
GET_/api/spaces/{repo_id}/revision/{revision}
Action
GET_/api/spaces/{repo_id}/revision/{revision}
Purpose
Retrieves details of a specific Space revision.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co).
Output
Workflow Example
1. Configure the API client with the base URL.
2. Execute GET_/api/spaces/huggingface/demo/revision/main with Accept=application/json.
3. Process the response to display revision details.
GET_/api/whoami-v2
Action
GET_/api/whoami-v2
Purpose
Retrieves authenticated user information.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute GET_/api/whoami-v2 with Accept=application/json.
3. Process the response to display user profile information.
PATCH_/api/collections/{namespace}/{slug}-{id}
Action
PATCH_/api/collections/{namespace}/{slug}-{id}
Purpose
Updates metadata of a specific collection.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute PATCH_/api/collections/huggingface/my-collection-123 with body {title: “Updated Collection”}, Accept=application/json.
3. Process the response to update collection metadata.
PATCH_/api/collections/{namespace}/{slug}-{id}/items/{item_id}
Action
PATCH_/api/collections/{namespace}/{slug}-{id}/items/{item_id}
Purpose
Updates an item’s note or position in a collection.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute PATCH_/api/collections/huggingface/my-collection-123/items/model/bert-base-uncased with body {note: “Updated note”}, Accept=application/json.
3. Process the response to update the collection item.
PATCH_/api/organizations/{name}/resource-groups/{resourceGroupId}
Action
PATCH_/api/organizations/{name}/resource-groups/{resourceGroupId}
Purpose
Updates a resource group’s metadata.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute PATCH_/api/organizations/huggingface/resource-groups/rg123 with body {name: “Updated RG”}, Accept=application/json.
3. Process the response to update resource group metadata.
PATCH_/api/organizations/{name}/resource-groups/{resourceGroupId}/users/{username}
Action
PATCH_/api/organizations/{name}/resource-groups/{resourceGroupId}/users/{username}
Purpose
Updates a user’s role in a resource group.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute PATCH_/api/organizations/huggingface/resource-groups/rg123/users/user1 with body {role: “admin”}, Accept=application/json.
3. Process the response to update user roles.
POST_/api/{repo_type}/{namespace}/{repo}/resource-group
Action
POST_/api/{repo_type}/{namespace}/{repo}/resource-group
Purpose
Updates a repository’s resource group.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute POST_/api/models/huggingface/bert-base-uncased/resource-group with body {resourceGroupId: “rg123”}, Accept=application/json.
3. Process the response to update repository settings.
POST_/api/collections
Action
POST_/api/collections
Purpose
Creates a new collection on the Hub.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute POST_/api/collections with body {title: “NLP Models”}, Accept=application/json.
3. Process the response to create a new collection.
POST_/api/collections/{namespace}/{slug}-{id}/item
Action
POST_/api/collections/{namespace}/{slug}-{id}/item
Purpose
Adds an item to a specific collection.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute POST_/api/collections/huggingface/my-collection-123/item with body {item: {type: “model”, id: “bert-base-uncased”}}, Accept=application/json.
3. Process the response to update the collection.
POST_/api/organizations/{name}/resource-groups
Action
POST_/api/organizations/{name}/resource-groups
Purpose
Creates a new resource group in an organization.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute POST_/api/organizations/huggingface/resource-groups with body {name: “ResearchGroup”}, Accept=application/json.
3. Process the response to create a new resource group.
POST_/api/organizations/{name}/resource-groups/{resourceGroupId}/settings
Action
POST_/api/organizations/{name}/resource-groups/{resourceGroupId}/settings
Purpose
Updates a resource group’s settings.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute POST_/api/organizations/huggingface/resource-groups/rg123/settings with body {autoJoin: {enabled: true, role: “read”}}, Accept=application/json.
3. Process the response to update resource group settings.
POST_/api/organizations/{name}/resource-groups/{resourceGroupId}/users
Action
POST_/api/organizations/{name}/resource-groups/{resourceGroupId}/users
Purpose
Adds users to a resource group.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute POST_/api/organizations/huggingface/resource-groups/rg123/users with body {users: [{user: “user1”, role: “admin”}]}, Accept=application/json.
3. Process the response to update resource group membership.
POST_/api/repos/create
Action
POST_/api/repos/create
Purpose
Creates a new repository on the Hub.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute POST_/api/repos/create with body {name: “my-model”, type: “model”}, Accept=application/json.
3. Process the response to create a new repository.
POST_/api/repos/move
Action
POST_/api/repos/move
Purpose
Moves or renames a repository.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute POST_/api/repos/move with body {fromRepo: “old-model”, toRepo: “new-model”, type: “model”}, Accept=application/json.
3. Process the response to update repository details.
PUT_/api/repos/{repo_type}/{repo_id}/settings
Action
PUT_/api/repos/{repo_type}/{repo_id}/settings
Purpose
Updates a repository’s visibility settings.
Parameters
Configuration
Ensure the connector is configured with the base URL (https://huggingface.co) and a valid Bearer token.
Output
Workflow Example
1. Configure the API client with the base URL and Bearer token.
2. Execute PUT_/api/repos/model/bert-base-uncased/settings with body {private: true}, Accept=application/json.
2. Process the response to update repository visibility.
4. Example Workflow: AI-Powered Application Development
Resource and Collection Management
Create and manage collections using POST_/api/collections and PATCH_/api/collections/{namespace}/{slug}-{id}.
Repository Management
Create, move, or delete repositories using POST_/api/repos/create, POST_/api/repos/move, and DELETE_/api/repos/delete.
Dataset and Model Access
Fetch datasets and models using GET_/api/datasets and GET_/api/models for integration into AI pipelines.
Organization and Resource Groups
Manage organization resources using POST_/api/organizations/{name}/resource-groups and PATCH_/api/organizations/{name}/resource-groups/{resourceGroupId}.
Research Integration
Access papers and linked repositories using GET_/api/papers/{arxiv
Pricing
iSolution logo - white - transparent 250 px
Register To Palo Alto & iSolution Event
[forminator_form id=”14485″]
[forminator_form id=”14419″]
[forminator_form id=”14298″]
[forminator_form id=”13094″]