Skip to main content

Python SDK Notebook Examples

Learn how to use the Clarifai Python SDK


Here are comprehensive step-by-step walkthroughs within Jupyter or Colab notebooks that showcase how to harness the power of the Clarifai SDKs.

NotebookDescriptionOpen in Colab
BasicsCreate, manage, update, and delete Clarifai resources, including apps, datasets, inputs, and modelsOpen in Colab
CLIClarifai provides a user-friendly command line interface (CLI) that simplifies various tasksOpen in Colab
Compute OrchestrationUse our Compute Orchestration system to create, get, list, and delete compute clusters, nodepools, and model deployments.Open in Colab
Data UtilsGet a range of multimedia data utilities designed to streamline your data management and processing operations.

Open in Colab
RAGUse Retrieval Augmented Generation (RAG) to improve Large Language Models (LLMs)Open in Colab
Concept managementEstablish a hierarchical relationship between concepts using concept relationsOpen in Colab
Datasets basicsMerge datasets and list inputs of a datasetOpen in Colab
Dataset exportExport datasets from a Clarifai appOpen in Colab
Dataset uploadUpload datasets into a Clarifai appOpen in Colab
Inputs uploadUpload inputs with various types of data, such as metadata, geo info, or bounding box annotations, into a Clarifai appOpen in Colab
Models predictGet predictions with text, image, video, and audio inputs with different types of modelsOpen in Colab
Evaluation for embedding classificationEvaluate the performance of embedding classifier modelsOpen in Colab
Evaluation for text classificationEvaluate the performance of text classifier modelsOpen in Colab
Evaluation for visual classificationEvaluate the performance of visual classifier modelsOpen in Colab
Evaluation for visual detectionEvaluate the performance of visual detector modelsOpen in Colab
Training for image classification Train image classifier modelsOpen in Colab
Training for image detectionTrain image detector modelsOpen in Colab
Training for image segmentationTrain image segmentation modelsOpen in Colab
Training for text classificationTrain text classifier modelsOpen in Colab
Training for transfer learnTrain transfer learn modelsOpen in Colab
Model upload
Cross-modal searchPerform vector search over your own dataOpen in Colab
Create workflowsCreate various types of workflowsOpen in Colab
Export workflowsDownload a YAML file representing your workflowOpen in Colab
Patch workflowsPerform patch operations by merging, removing, or overwriting dataOpen in Colab

Integration Examples

NotebookDescriptionOpen in Colab
LangChain
Agent: Doc-retrieval using ReAct DocstoreOpen in Colab
Agent: Retrieval QA using Clarifai vector store with conversation memoryOpen in Colab
Chains: Using PostgreSQL database with LangChainOpen in Colab
Chains: Prompt templates and chainsOpen in Colab
Chains: Retrieval QA Chain with Clarifai vector storeOpen in Colab
Chains: Router Chain with Clarifai SDK prompt templatesOpen in Colab
Unstructured.io
S3 data ingestionOpen in Colab
GitHub data ingestionOpen in Colab
DropBox data ingestionOpen in Colab