langchain-ai21: 0.1.8#

ai21_base#

Classes

ai21_base.AI21Base

Base class for AI21 models.

chat#

Classes

chat.chat_adapter.ChatAdapter()

Common interface for the different Chat models available in AI21.

chat.chat_adapter.J2ChatAdapter()

Adapter for J2Chat models.

chat.chat_adapter.JambaChatCompletionsAdapter()

Adapter for Jamba Chat Completions.

Functions

chat.chat_factory.create_chat_adapter(model)

Create a chat adapter based on the model.

chat_models#

Classes

chat_models.ChatAI21

ChatAI21 chat model.

contextual_answers#

Classes

contextual_answers.AI21ContextualAnswers

Runnable for the AI21 Contextual Answers API.

contextual_answers.ContextualAnswerInput

Input for the ContextualAnswers runnable.

embeddings#

Classes

embeddings.AI21Embeddings

AI21 embedding model integration.

llms#

Classes

llms.AI21LLM

AI21 large language models.

semantic_text_splitter#

Classes

semantic_text_splitter.AI21SemanticTextSplitter([...])

Splitting text into coherent and readable units, based on distinct topics and lines.