forked from Azure/azureml-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Cohere Notebook Samples (Azure#3125)
- Loading branch information
1 parent
2ebbb5e
commit 640601e
Showing
7 changed files
with
1,736 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Cohere model samples | ||
|
||
### Basic samples | ||
|
||
Sample | Description | SDKs | ||
--|--|-- | ||
[webrequests.ipynb](./webrequests.ipynb)|Use Command R family of LLMs with the native Python packages.|`urllib.request`, `json` | ||
[cohere-cmdR.ipynb](./cohere-cmdR.ipynb)|Use Command R family of LLMs with the Cohere python SDK.|`cohere` | ||
[cohere-embed.ipynb](./cohere-embed.ipynb)| Use Embedding models with the Cohere python SDK.|`cohere` | ||
[langchain.ipynb](./langchain.ipynb)|Use Command R family of LLMs with the LangChain SDK and Cohere's LangChain integration.|`langchain`, `langchain_cohere` | ||
[litellm.ipynb](./litellm.ipynb)|Use Command R family of LLMs with the LiteLLM SDK |`litellm` | ||
[openaisdk.ipynb](./openaisdk.ipynb)|Use Command R family of LLMs with the Open AI SDK. Note that this is exprimental and can break if there is breaking change with the OpenAI APIs. |`openai` | ||
|
||
|
||
### Retrieval Augmented Generation (RAG) and Tool-Use samples | ||
Sample | Description | SDKs | ||
--|--|-- | ||
[cohere_faiss_langchain_embed.ipynb](./cohere_faiss_langchain_embed.ipynb)|Create a local (FAISS) vector index using Cohere embeddings - Langchain|`langchain`, `langchain_cohere` | ||
[command_faiss_langchain.ipynb](./command_faiss_langchain.ipynb)|Use Cohere Command R/R+ to answer questions from data in local (FAISS) vector index - Langchain|`langchain`, `langchain_cohere` | ||
[cohere-aisearch-langchain-rag.ipynb](./cohere-aisearch-langchain-rag.ipynb)|Use Cohere Command R/R+ to answer questions from data in AI search vector index - Langchain|`langchain`, `langchain_cohere` | ||
[cohere-aisearch-rag.ipynb](./cohere-aisearch-rag.ipynb)|Use Cohere Command R/R+ to answer questions from data in AI search vector index - Cohere SDK| `cohere`, `azure_search_documents` | ||
[command_tools-langchain.ipynb](./command_tools-langchain.ipynb)|Command R+ tool/function calling using LangChain|`cohere`, `langchain`, `langchain_cohere` |
Oops, something went wrong.