AI21 Labs is a company specializing in Natural Language Processing (NLP), which develops AI systems that can understand and generate natural language.This page covers how to use the
AI21 ecosystem within LangChain.
Installation and Setup
- Get an AI21 api key and set it as an environment variable (
AI21_API_KEY) - Install the Python package:
Chat models
AI21 Chat
See a usage example.Deprecated features
:::caution The following features are deprecated. :::AI21 LLM
AI21 Contextual Answer
Text splitters
AI21 Semantic Text Splitter
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.