Skip to main content Skip to complementary content

Hugging Face analytics source

Use the Hugging Face analytics connector to communicate with Hugging Face, enriching your Qlik Sense apps with contextual and analytical depth from a large repository of machine learning models.

With the Hugging Face analytics connector, you can send data from app consumer input, or from data loaded in your script, to Hugging Face. You can connect to this analytics source from the hub, the Script, or within an app.

Hugging Face

Getting started with Hugging Face

Before you can use this analytics connector, you must complete the following preparatory steps.

Create an account

Visit the official Hugging Face website to register for an account. After you have created the account, you can generate API keys and access other features on the platform.

Generate an API token

To authenticate yourself on a Hugging Face connection, you must have an API token. To learn how to create and manage API tokens, refer to the Hugging Face website. You might need to do this through your account settings: Access Tokens.

Enabling ML endpoints in Qlik Cloud

To work with this connector, machine learning endpoints must be enabled in the Management Console (or Administration, if you are using the new platform navigation). The switch is located under Feature control in the Settings section.

For more information, see Enabling analytic connections for machine learning endpoints.

Limitations

  • The different configurations of this connector send data to the endpoint service with the following limits:

    • Feature Extraction: Request limit of 40 rows per request, with a maximum batch size of 20 rows being sent at a time.

    • Question Answering: Request limit of 25 rows per request, with a maximum batch size of one row being sent at a time.

    • Summarization: Request limit of 40 rows per request, with a maximum batch size of 20 rows being sent at a time.

    • Sentence Similarity: Request limit of 10,000 rows per request, with a maximum batch size of 1000 rows being sent at a time.

    • Text Classification: Request limit of 40 rows per request, with a maximum batch size of 20 rows being sent at a time.

    • Text Generation: Request limit of 40 rows per request, with a maximum batch size of 20 rows being sent at a time.

    • Token Classification: Request limit of 40 rows per request, with a maximum batch size of 20 rows being sent at a time.

    • Translation: Request limit of 40 rows per request, with a maximum batch size of 20 rows being sent at a time.

  • In a scenario where an application is regularly reloaded, it is best practice to cache the machine learning predictions using a QVD file and only send the new rows to the endpoint. This will improve the performance of the Qlik Sense application reload and reduce the load on the model endpoint.

  • The resources available on the services where the model has been deployed will impact and limit performance in the Qlik Sense reload and chart responsiveness.

  • When using Hugging Face connections in a chart expression it is recommended to provide the datatypes of the fields as the model needs to process these in the correct string/numeric format. A limitation of server side extensions in chart expressions is that the data types are not automatically detected as they are in the load script.

  • If you are using a relative connection name, and if you decide to move your app from a shared space to another shared space, or if you move your app from a shared space to your private space, then it will take some time for the analytic connection to be updated to reflect the new space location.

Learn more

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!