Skip to main content

Base Workflows

Base workflows index your data and provide your app with a default knowledge base


The base workflow acts as the default knowledge base for your app and provides the basic structure for indexing your data. It gives you a "head start" when working with your data — by pre-indexing your inputs for search and by providing a default embedding for your custom models.

How it Works

Your base workflow makes your data sortable and searchable as soon as it is uploaded. When you add an input to your app, the base workflow of your app computes the outputs from the model(s) in that workflow and indexes those outputs.

A base workflow usually contains an embedding model, which indexes the inputs. Those indexed outputs enable search and transfer-learn based training on top of the base workflow model(s).

How to Choose a Base Workflow

You can choose a base workflow when creating a new application. After selecting the primary input type for your app, the base workflow will be automatically selected for you — within the collapsible Advanced Settings field.

Alternatively, you can select the one that aligns most with your specific use case from the dropdown list accessible when you click the workflows search box.

choose base workflow

How to Change a Base Workflow

You can also change the base workflow once your app is created. You can choose a public workflow available in the Clarifai app here or a workflow you've created in your app.

To change it, go to your App Settings page and select the one you prefer from the list that drops down when you click the workflows search box.

After selecting your preferred base workflow, click the Change Base Workflow button.

reindexing
  • Updating the base workflow will reindex your app, processing all inputs through the new base workflow. This may take some time, and could incur costs. You could avoid the costs by deleting all your inputs before updating the base workflow.
  • During reindexing, existing data from the old base workflow isn't deleted. This means you can easily revert back to the old base workflow if needed.

change base workflow

Base Workflows Use Cases

You should go for a workflow that optimizes your custom model performance. For example, if you're training a custom model around food, you could choose the Food model as your Base Workflow to yield better results.

Below is a table outlining the potential use cases for various base workflows. You can refer to this table to determine the workflow that best suits your needs.

Empty

WorkflowUse Case
EmptyEmpty workflow for apps that do not need inputs to be indexed for search and/or transfer learning. For example, if the app is used for deep training and/or labeling, you can set the base workflow as Empty to speed up the input upload process; later, you can change to another workflow to index your app.

Text Workflows

WorkflowUse Case
TextA single-model workflow of text embedding model for general English text
BAAI-General-Embedding-Base-enA workflow for text search
UniversalA universal workflow for text and image search
Roberta-embedder
MSMARCO-Distilbert-Text-SearchText search workflow for TREC (Text REtrieval Conference) 2022
Text-ModerationA single-model text moderation workflow that combines classification and embedding functions to classify harmful text content

Image Workflows

WorkflowUse Case
DemographicsMulti-model workflow that detects, crops, and recognizes demographic characteristics of faces. Visually classifies age, gender, and multi-culture
UniversalA universal workflow for text and image search
Apparel
Face-V4
General-DetectionA general image detection workflow that detects a variety of common objects, and enables visual search using general embeddings on detected regions
OCR-Translation-English-Spanish
Face-SentimentMulti-model workflow that combines face detection and sentiment classification of 7 concepts: anger, disgust, fear, neutral, happiness, sadness, contempt, and surprise
WeddingVisually classify wedding-related content and enable visual search using specific embeddings
FoodA workflow that combines detection, classification, and embedding functions to visually classify food items and enable visual search using embeddings
ModerationAn image moderation workflow that combines detection, classification, and embedding to classify harmful content and enable visual search using embeddings
TravelA workflow that combines detection, classification, and embedding to classify travel-related properties and items, and enable visual search using embeddings
FaceA workflow that combines detection, recognition, and embedding to generate face landmarks and enable visual search using detected faces' embeddings
GeneralA general image workflow that combines detection, classification, and embedding to identify general concepts, including objects, themes, moods, etc.
Visual-SegmenterGenerates image segmentation masks for concepts in an image
Segmentation
Person-Tracking
Person-Tracking-Lite
Vehicle-Detection0

Audio Workflows

WorkflowUse Case
ASR-SentimentObtains the sentiment of an audio. Takes audio as input, runs an Audio Speech Recognition (ASR) model, and uses the resulting text as input to a text sentiment model
Audio-SentimentObtains the sentiment of an audio. Takes audio as input, runs an Audio Speech Recognition (ASR) model, and uses the resulting text as input to a text sentiment model
ASR-SummarizationSummarize text from English audio