docs: Minor corrections and updates to Cohere docs (#22726)

- **Description:** Update the Cohere's provider and RagRetriever
documentations with latest updates.
    - **Twitter handle:** Anirudh1810
This commit is contained in:
Anirudh31415926535
2024-08-01 01:16:26 +08:00
committed by GitHub
parent 40b4a3de6e
commit 4da3d4b18e
6 changed files with 281 additions and 137 deletions

View File

@@ -111,7 +111,7 @@ class ChatCohere(BaseChatModel, BaseCohere):
from langchain_community.chat_models import ChatCohere
from langchain_core.messages import HumanMessage
chat = ChatCohere(model="command", max_tokens=256, temperature=0.75)
chat = ChatCohere(max_tokens=256, temperature=0.75)
messages = [HumanMessage(content="knock knock")]
chat.invoke(messages)