-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V2 final #151
V2 final #151
Conversation
* V2 specs * v2 * v2 * Update v2.yml Signed-off-by: billytrend-cohere <[email protected]> --------- Signed-off-by: billytrend-cohere <[email protected]>
* release notes for API v2 * Rename 2024-09-18-api-v2 to 2024-09-18-api-v2.mdx Signed-off-by: billytrend-cohere <[email protected]> * what's new details --------- Signed-off-by: billytrend-cohere <[email protected]> Co-authored-by: billytrend-cohere <[email protected]>
* add v2 docs - first batch * add v2 docs * update image paths * temp remove param types docs * misc updates * add models section and update yml * multi step tool use updates * Update fern/pages/fine-tuning/chat-fine-tuning/chat-starting-the-training.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/fine-tuning/chat-fine-tuning/chat-starting-the-training.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/v2/models/the-command-family-of-models/command-r.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/v2/text-generation/chat-api.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/v2/text-generation/migrating-v1-to-v2.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Update fern/pages/v2/text-generation/migrating-v1-to-v2.mdx Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * clean up migration guide * update text gen docs * update command model to latest * add tool use param types docs * ft updates * update tool content to accept string * update agent getting started nb * safety mode * update fern * upd search query gen and web search for v2 * change RAG documents to top level param * remove gen->chat migration, misc updates * embedding types required * update rag query generation * chg term - preamble to system message * update client to use v2 for misc endpoints * multi step updates * update getting started tutorials * update migration guide title * update migration guide * Update preview-docs.yml (#143) Signed-off-by: billytrend-cohere <[email protected]> * update chat * Revert "Update preview-docs.yml (#143)" (#144) This reverts commit abfd2bd. * update links * Apply suggestions from code review Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * Apply suggestions from code review Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * chat api updates * update web search and search query gen migration guide * fix formatting * search query gen upd * add 2 missing pages * v2 slug change * Apply suggestions from code review Co-authored-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> * migration guide - simplify chat history * update links to point to v2 * update RAG responses * update streaming docs * update deployment options and misc * deployment options edits * v1 usage notes * fix formatting * update meta desc * update meta desc * updates on tool use structure and migration guide, + misc * make v2 default * fix links --------- Signed-off-by: Michael <[email protected]> Signed-off-by: Meor Amer <[email protected]> Signed-off-by: billytrend-cohere <[email protected]> Co-authored-by: Michael <[email protected]> Co-authored-by: billytrend-cohere <[email protected]>
Signed-off-by: billytrend-cohere <[email protected]>
🌿 Preview your docs: https://cohere-preview-e44c5dad-f6fa-4e73-906b-3c34cd899f2f.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-43641d02-25a2-4769-9c78-9d62d56d81c2.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-c7064af6-4c4e-4c51-9a43-2463892b4ea2.docs.buildwithfern.com |
fern/pages/v2/text-generation/retrieval-augmented-generation-rag.mdx
Outdated
Show resolved
Hide resolved
fern/pages/v2/text-generation/retrieval-augmented-generation-rag.mdx
Outdated
Show resolved
Hide resolved
fern/pages/v2/tutorials/build-things-with-cohere/semantic-search-with-cohere.mdx
Outdated
Show resolved
Hide resolved
fern/pages/v2/tutorials/build-things-with-cohere/rag-with-cohere.mdx
Outdated
Show resolved
Hide resolved
fern/pages/v2/tutorials/build-things-with-cohere/rag-with-cohere.mdx
Outdated
Show resolved
Hide resolved
🌿 Preview your docs: https://cohere-preview-19b86b44-23a1-49c4-9390-402d7fd80488.docs.buildwithfern.com |
Signed-off-by: Michael <[email protected]>
🌿 Preview your docs: https://cohere-preview-50cff73e-c902-4321-b2f3-c6ceda48cf44.docs.buildwithfern.com |
Signed-off-by: Michael <[email protected]>
Signed-off-by: Michael <[email protected]>
🌿 Preview your docs: https://cohere-preview-204aed78-8a81-4ac7-9ab2-8192df4e43b2.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-7a7027b8-c715-4804-b996-6e14c7225634.docs.buildwithfern.com |
…re.mdx Co-authored-by: Meor Amer <[email protected]> Signed-off-by: billytrend-cohere <[email protected]>
…re.mdx Co-authored-by: Meor Amer <[email protected]> Signed-off-by: billytrend-cohere <[email protected]>
…ch-with-cohere.mdx Co-authored-by: Meor Amer <[email protected]> Signed-off-by: billytrend-cohere <[email protected]>
Co-authored-by: Meor Amer <[email protected]> Signed-off-by: billytrend-cohere <[email protected]>
…ag.mdx Co-authored-by: Meor Amer <[email protected]> Signed-off-by: billytrend-cohere <[email protected]>
…ag.mdx Co-authored-by: Meor Amer <[email protected]> Signed-off-by: billytrend-cohere <[email protected]>
Co-authored-by: Meor Amer <[email protected]> Signed-off-by: billytrend-cohere <[email protected]>
Co-authored-by: Meor Amer <[email protected]> Signed-off-by: billytrend-cohere <[email protected]>
🌿 Preview your docs: https://cohere-preview-69030cab-8112-4f42-b6f5-f29fbc3dae9b.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-7a74f582-a671-4389-9901-a9481899b672.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-e23039c2-20fd-4d75-bc17-ddfd3722d2e1.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-92745f64-bf75-497a-8e37-d8988d9debcb.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-a93819c0-34af-41e1-a4bc-3143f90c14a8.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-144b9e81-556c-4bbb-9f38-f6e83368e4aa.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-37c6ac3c-99ae-4b4c-8cf5-7df5f7371e3f.docs.buildwithfern.com |
Update LLMU notebooks - RAG
This PR introduces a new version of the Cohere API, v2, which includes improvements to the Chat, Classify, Embed, and Rerank APIs. It also introduces a new SDK,
cohere.ClientV2
.Changes
model
parameter is now required for Embed, Rerank, Classify, and Chat.embedding_types
parameter is now required for Embed.messages
parameter now consists of a list of roles (system
,user
,assistant
, ortool
). Thesystem
role in v2 replaces thepreamble
parameter in v1.messages
list.message.content[0].text
.seed
andtemperature
parameters of the Chat API can be used to control the predictability of the model's output.system
role in themessages
parameter can be used to provide instructions for the model.documents
parameter now supports a few different options for structuring documents: a list of objects withdata
object, a list of objects withdata
string, or a list of strings.message.citations
parameter is now used to access citations.message.citations
, in thesources
field.search_queries_only
parameter is now supported via tools.connectors
parameter is now supported via user-defined tools.web-search
connector in theconnectors
parameter is now supported via tools.conversation_id
parameter is no longer supported (chat history is now managed by the developer via themessages
parameter).search_queries_only
,connectors
, andprompt_truncation
parameters are no longer supported.force_single_step
parameter is no longer supported (all tool calls are now multi-step by default).tool_call_id
parameter is now used to emit tool call IDs.tool_call_id
andtool_content
tomessages
to the chat history.""
) by default.citations
parameter is now used to access citations.message.citations
, in thesources
field.citation_quality
parameter is now controlled via thecitation_options
parameter (withmode
as a key).