WhoBuilt

Building State of the Art Open Weights Tool Use: The Command R Family

Aug 26, 2024· 15 min· 1.9K views·Watch on YouTube

Speaker

Sandra Kublik of Cohere discusses the Command R model family, its retrieval and tool-use design, and how builders can use it locally and in applications at AI Engineer.

Command R gains traction

Kublik describes the releases of Command R, optimized for retrieval-augmented generation, and Command R+, optimized for tool use and advanced retrieval. She says Command R+ reached the LMSYS Arena within days, was downloaded 150,000 times from Hugging Face within two weeks, and became the base model for HuggingChat. She also notes that nearly half a million developers and researchers were using the R family at the time.

Designing models for reliable retrieval

Kublik identifies challenges in building RAG systems: models can be sensitive to prompts, overlook information later in a document, and favor pretrained knowledge over retrieved facts. Cohere used post-training to help models decide when retrieval is needed, search for relevant information, and use it as context. The team emphasized fine-grained citations so users can check sources, and tested the models on datasets including KILT.

An open toolkit for RAG interfaces

Kublik says Cohere open-sourced a toolkit on April 24 to help teams build interfaces for RAG and tool use. It includes a Next.js app, a small SQL database for conversation history, and components for connecting to Command R models through cloud providers, Cohere, local hosting, or Hugging Face. Its example retriever uses LangChain, supports document uploads and web search, and can be extended with other tools and data sources.

Multi-step tool use and reasoning

Kublik distinguishes single-step tool use, such as searching for a document, from multi-step tasks where each action builds on the last. She describes a multi-step API that lets developers specify tools and parameters; the model plans, calls tools, reflects on results, and can revise its plan or retry after errors. She says the model can explain tool use with citations, and claims Command R+ is three to five times cheaper than Claude and GPT-4 Turbo while offering competitive performance.

Takeaways

  • Fine-grained citations let users verify which retrieved sources support an answer.
  • Post-training can help a model decide when to retrieve information and how to use it as context.
  • An open interface toolkit can provide reusable pieces for conversation history, retrieval, uploads, and tool connections.
  • For multi-step workflows, define tools and parameters clearly, then let the model adapt its plan based on tool results.
  • Compare model quality and cost together when choosing a model for production scale.

Mentioned in this talk

Search inside this talk

What was claimed 12

  • feature
    Command R: Optimized for retrieval-augmented generation; open weights; can run locally
    “excels at structured, advanced RAG and sequential reasoning, and you can run it locally”
    YouTube
    Unverified1 source· Talk
  • built
    “we released Command R and open-weighted the model”
    YouTube
    Verified2 sources· Talk
  • feature
    Command R: Optimized for tool use and advanced retrieval-augmented generation
    “optimized for tool use and advanced retrieval-augmented generation”
    YouTube
    Unverified1 source· Talk
  • metric
    Command R: Downloaded 150,000 times from Hugging Face within two weeks of release
    “the model had been downloaded 150,000 times from Hugging Face”
    YouTube
    Unverified1 source· Talk
  • uses
    as a base model for HuggingChat
    “they decided to use it as a base model for HuggingChat”
    YouTube
    Unverified1 source· Talk
  • feature
    Modal UI: Conversation history, fine-grained citations, document uploads, and tool integrations
    “conversation history, fine-grained citations, document uploads, and the ability to plug into different types of tools”
    YouTube
    Unverified1 source· Talk
  • built
    “we decided it would be a good idea to open-source the UI, and that’s what we did on April 24th”
    YouTube
    Unverified1 source· Talk
  • uses
    interface app built with
    “source code for an interface app we built with Next.js”
    YouTube
    Unverified1 source· Talk
Show all 12 facts

Related talks