This PR introduces a new notebook, Cohere_RAG_Inline_Citation_Markdown_Generator.ipynb, which demonstrates how to use Cohere's Command model to generate responses with inline citations in both Markdown and HTML formats. The notebook includes:
Installation instructions for the Cohere Python package.
A helper function, generate_response, that takes in a response text and a list of citations, and returns a tuple containing the formatted response in Markdown and HTML.
An example usage of the cohere.Client class to call the Command model and generate a response with inline citations.
Code to display the generated Markdown and HTML responses.
Overall, the PR showcases how to generate and format responses with inline citations using Cohere's Command model and the provided helper function.
This PR introduces a new notebook,
Cohere_RAG_Inline_Citation_Markdown_Generator.ipynb
, which demonstrates how to use Cohere's Command model to generate responses with inline citations in both Markdown and HTML formats. The notebook includes:generate_response
, that takes in a response text and a list of citations, and returns a tuple containing the formatted response in Markdown and HTML.cohere.Client
class to call the Command model and generate a response with inline citations.Overall, the PR showcases how to generate and format responses with inline citations using Cohere's Command model and the provided helper function.