The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs: langchain-ai21 update ai21 docs (#28076)
miri-bar6e607bb23766
diff --git a/docs/docs/integrations/llms/ai21.ipynb b/docs/docs/integrations/llms/ai21.ipynbindex cf83e033e0..628755f9e1 100644--- a/docs/docs/integrations/llms/ai21.ipynb+++ b/docs/docs/integrations/llms/ai21.ipynb@@ -17,6 +17,9 @@"source": ["# AI21LLM\n","\n",+ ":::caution This service is deprecated.\n",+ "See [this page](https://python.langchain.com/docs/integrations/chat/ai21/) for the updated ChatAI21 object. :::\n",+ "\n","This example goes over how to use LangChain to interact with `AI21` Jurassic models. To use the Jamba model, use the [ChatAI21 object](https://python.langchain.com/docs/integrations/chat/ai21/) instead.\n","\n","[See a full list of AI21 models and tools on LangChain.](https://pypi.org/project/langchain-ai21/)\n",diff --git a/docs/docs/integrations/providers/ai21.mdx b/docs/docs/integrations/providers/ai21.mdxindex 60a925363b..140e755da8 100644--- a/docs/docs/integrations/providers/ai21.mdx+++ b/docs/docs/integrations/providers/ai21.mdx@@ -15,53 +15,42 @@ This page covers how to use the `AI21` ecosystem within `LangChain`.pip install langchain-ai21```-## LLMs+## Chat models-See a [usage example](/docs/integrations/llms/ai21).+### AI21 Chat-### AI21 LLM+See a [usage example](/docs/integrations/chat/ai21).```python-from langchain_ai21 import AI21LLM+from langchain_ai21 import ChatAI21```-### AI21 Contextual Answer+## Deprecated features-You can use AI21’s contextual answers model to receive text or document,-serving as a context, and a question and return an answer based entirely on this context.+:::caution The following features are deprecated.+:::++### AI21 LLM```python-from langchain_ai21 import AI21ContextualAnswers+from langchain_ai21 import AI21LLM```--## Chat models--### AI21 Chat--See a [usage example](/docs/integrations/chat/ai21).+### AI21 Contextual Answer```python-from langchain_ai21 import ChatAI21+from langchain_ai21 import AI21ContextualAnswers```-## Embedding models-### AI21 Embeddings-See a [usage example](/docs/integrations/text_embedding/ai21).-```pythonfrom langchain_ai21 import AI21Embeddings```-## Text splitters### AI21 Semantic Text Splitter-See a [usage example](/docs/integrations/document_transformers/ai21_semantic_text_splitter).-```pythonfrom langchain_ai21 import AI21SemanticTextSplitter-```-+```\ No newline at end of filediff --git a/docs/docs/integrations/text_embedding/ai21.ipynb b/docs/docs/integrations/text_embedding/ai21.ipynbindex 7cf6de2245..d77ba9bbf6 100644--- a/docs/docs/integrations/text_embedding/ai21.ipynb+++ b/docs/docs/integrations/text_embedding/ai21.ipynb@@ -17,6 +17,8 @@"source": ["# AI21Embeddings\n","\n",+ ":::caution This service is deprecated. :::\n",+ "\n","This will help you get started with AI21 embedding models using LangChain. For detailed documentation on `AI21Embeddings` features and configuration options, please refer to the [API reference](https://python.langchain.com/api_reference/ai21/embeddings/langchain_ai21.embeddings.AI21Embeddings.html).\n","\n","## Overview\n",