RepoClarifaiClarifaipublished Jun 24, 2025seen 5d

Clarifai/langchain_clarifai

Python

Open original ↗

Captured source

source ↗
published Jun 24, 2025seen 5dcaptured 13hhttp 200method plain

Clarifai/langchain_clarifai

Language: Python

License: MIT

Stars: 0

Forks: 0

Open issues: 0

Created: 2025-06-24T13:59:27Z

Pushed: 2025-12-17T23:14:26Z

Default branch: main

Fork: no

Archived: no

README:

langchain-clarifai

This package contains the LangChain integration with Clarifai

Installation

pip install -U langchain-clarifai

And you should configure credentials by setting the following environment variables:

export CLARIFAI_PAT="Your PAT"

If you don't know your PAT, please get it here: https://clarifai.com/settings/security

Chat Models

ChatClarifai class exposes chat models from Clarifai.

from langchain_clarifai import ChatClarifai

llm = ChatClarifai(model_url="https://clarifai.com/meta/Llama-3/models/Llama-3_2-3B-Instruct")
llm.invoke("Sing a ballad of LangChain.")

Embeddings

ClarifaiEmbeddings class exposes embeddings from Clarifai.

from langchain_clarifai import ClarifaiEmbeddings

embeddings = ClarifaiEmbeddings(model_url="https://clarifai.com/clarifai/main/models/BAAI-bge-base-en-v15")
embeddings.embed_query("What is the meaning of life?")

Notability

notability 4.0/10

New integration repo, no traction info.