GithubHelp home page GithubHelp logo

clarifai / examples Goto Github PK

View Code? Open in Web Editor NEW
14.0 6.0 2.0 172.14 MB

Examples for Clarifai Python SDK and Integrations. Give the repo a star ⭐

Home Page: https://github.com/Clarifai/clarifai-python

License: Other

Python 2.47% Jupyter Notebook 97.53%
clarifai clarifai-python computer-vision examples generative-ai llm natural-language-processing pretrained-language-model pretrained-models python

examples's Introduction

Clarifai Python SDK and Integrations Examples

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

Setup

  • 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.

Usage

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")

SDK Notebooks

Function Notebook Open in Colab
Basics Basics Open in Colab
Datasets Input Upload Open in Colab
Dataset Upload Open in Colab
Dataset Export Open in Colab
Workflows Create Workflow Open in Colab
Export Workflow Open in Colab
Model Predict Model Predict Open in Colab
Model Training Image Classification Training Open in Colab
Text Classification Training Open in Colab
Image Detection Training Open in Colab
Image Segmentation Training Open in Colab
Transfer Learn Training Open in Colab
Model Evaluation Embedding Classifier Open in Colab
Text Classifier Open in Colab
Visual Classifier Open in Colab
Visual Detector Open in Colab
Search Vector Search Open in Colab
RAG RAG Open in Colab

Integrations Notebooks

Integration Function Notebook Open in Colab
Langchain Chains Prompt Templates and Chains Open in Colab
Retrieval QA Chain Open in Colab
Router Chain Open in Colab
PostgreSQL LLM Open in Colab
Agents Conversational Agent Open in Colab
ReAct Docstore Agent Open in Colab
Unstructured.io Github Data Ingestion Open in Colab
S3 Data Ingestion Open in Colab
DropBox Data Ingestion Open in Colab

Data Utils Notebooks

Data Util Function Notebook Open in Colab
Image Image Annotation annotation loader Open in Colab

Model upload examples

How to start

Please refer to this doc

Examples

Model type Example
multimodal-embedder CLIP
text-classifier xlm-roberta
text-embedder instructor-xl
text-to-image sd-v1.5
text-to-text bart-summarize, vllm model
visual_classsifier age_vit
visual_detector yolof, faster-rcnn_torchserve
visual_embedder vit-base
visual_segmenter segformer-b2

Note

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.

examples's People

Contributors

adithyan-sukumar avatar dependabot[bot] avatar iankelk avatar isaac-chung avatar mogith-pn avatar phatvo9 avatar phtvo avatar sainivedh avatar sanjaychelliah avatar srikanthbachala20 avatar sriram-clarifai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.