This is a collection of examples for the clarifai-python SDK and Integrations done with Clarifai SDK. Use these examples to learn Clarifai and build your own robust and scalable AI applications.
Experience the power of Clarifai in building Computer Vision , Natual Language processsing , Generative AI applications.
Website | Schedule Demo | Signup for a Free Account | API Docs | Clarifai Community | Python SDK Docs | Examples | Colab Notebooks | Discord
-
Sign up for a free account at clarifai and set your PAT key.
-
Install the Clarifai python sdk.
-
Export your PAT as an environment variable.
export CLARIFAI_PAT={your personal access token}
-
Explore and run the examples in this repo.
The examples are organized into several folders based on their category. A quick example below,
from clarifai.client.dataset import Dataset
dataset = Dataset(user_id="user_id", app_id="app_id", dataset_id="dataset_id")
dataset.upload_dataset(task="text_clf", split="train", module_dir="path_to_imdb_reviews_module")
Function | Notebook | Open in Colab |
---|---|---|
Basics | Basics | |
Datasets | Input Upload | |
Dataset Upload | ||
Dataset Export | ||
Workflows | Create Workflow | |
Export Workflow | ||
Model Predict | Model Predict | |
Model Training | Image Classification Training | |
Text Classification Training | ||
Image Detection Training | ||
Image Segmentation Training | ||
Transfer Learn Training | ||
Model Evaluation | Embedding Classifier | |
Text Classifier | ||
Visual Classifier | ||
Visual Detector | ||
Search | Vector Search | |
RAG | RAG |
Integration | Function | Notebook | Open in Colab |
---|---|---|---|
Langchain | Chains | Prompt Templates and Chains | |
Retrieval QA Chain | |||
Router Chain | |||
PostgreSQL LLM | |||
Agents | Conversational Agent | ||
ReAct Docstore Agent | |||
Unstructured.io | Github Data Ingestion | ||
S3 Data Ingestion | |||
DropBox Data Ingestion |
Data Util | Function | Notebook | Open in Colab |
---|---|---|---|
Image | Image Annotation | annotation loader |
Please refer to this doc
Although these scripts are run on your local machine, they'll communicate with Clarifai and run in our cloud on demand.
Examples provide a guided tour through Clarifai's concepts and capabilities. contains uncategorized, miscellaneous examples.