ClauseBuddy
Quality LibTruffle HuntSmart TemplatesDoc AnalysisCompareAdmin
  • Welcome!
  • Getting Started
    • Quick Start Videos
    • System Requirements
    • Installation
    • Accessing the app
    • Enterprise deployment
    • Logins
    • Frequently Asked Questions
    • Encountering problems?
    • Help & Support Center
  • Quality Library
    • Searching Clauses
      • Overview
      • Searching by keywords
      • Browsing Folders
      • Filtering clauses
      • Inspecting clauses
    • Using Clauses
      • Inserting clauses
      • Configuration
    • Drafting Clauses
      • Creating clauses
      • Drafting the body of a clause
      • Smart placeholders
    • Custom styling
      • ClauseBuddy layout structure
      • Heading pane
      • Body text pane
      • Document title pane
      • Template detection pane
    • FAQ
      • How to create a new folder when you add a new clause?
      • How do I fill out a placeholder when adding a clause to a document?
      • How do I change a folder name?
      • How can I change the location of a clause in the library?
      • How do I delete a folder?
      • What’s the difference between green and purple clauses?
      • Why are not all attributes visible as filters?
      • When do I apply a status to my clause instead of an attribute?
      • How can I create my own attributes?
      • What is the difference between the Quality Library and the Truffle Hunt?
      • How can I avoid duplicating clauses when adding to the library?
  • Inspiration
    • Introduction
    • Truffle Hunt: clauses
    • Truffle Hunt: documents
    • Managing Truffle Hunt baskets
    • Process results with AI
    • Compliance
    • Samples Hunt
    • AutoSuggest
    • FAQ
      • Samples Hunt
        • From which database does Samples Hunt get its info?
      • Truffle Hunt
        • Can ClauseBuddy read and retrieve clauses from scanned documents?
        • How do I go to the document containing the found clause?
        • What is the difference between the strict and non-strict option when searching for clauses?
        • What's the best way to search for clauses in Truffle Hunt?
        • Is a clause modification in Truffle Hunt permanent?
        • Can you search multiple baskets at once?
        • Can you edit properties of documents in bulk such as doc title or year?
        • Can I store multiple clauses from Truffle Hunt in the Quality Library at once?
        • Is there a quick way to upload an open document to Truffle Hunt?
        • How can I update party names in a clause without manually overwriting?
        • What happens when I upload a duplicate clause or duplicate document to Truffle Hunt?
      • AutoSuggest
  • Generative AI
    • Introduction to GenAI
    • Write & Rewrite
    • Smart Merge
    • Doc Chat
    • Multi-document Table
    • Semantic Search
    • Compose Document
    • Custom LLMs
    • FAQ
      • Doc Chat
      • Compose Document
      • Write & Rewrite
        • Where does the AI get its inspiration?
        • Can I train the AI to match our company's spelling and style?
        • Can I save frequently used prompts to apply them faster?
        • How do I write good AI prompts?
      • Summarise
  • Document Analysis
    • Definitions
    • Proofreading
    • Reviewing: introduction
    • Reviewing: building rules
    • Running reviews
    • Checklists
    • Bracketeer
    • FAQ
      • Proofreading
        • Can I add my own custom checks to Proofreading?
      • Definitions
      • Document Reviewing
        • How come the Review document feature is not visible in my overview?
        • What do I name my review category?
        • What exactly do the questions do and what are they for?
        • Do requirements within a review category affect each other?
  • Operations
    • Text Compare
    • Bulk Compare
    • Bulk Operations
    • Deep Compare
  • FAQ
    • Text Compare
    • Bulk Compare
    • Bulk Operations
  • Smart Templates
    • Quick Tutorial: Smart Templates
    • Smart Templates in depth
      • Highlighting Word documents
      • Creating cards and questions
      • Conditions for cards & questions
      • Conditional text
      • Conditional rows, columns, sections & blocks
      • Template settings
      • Sharing templates
      • Tips when using Word
      • Comparison with Clause9
      • Integrations
      • Bulk create
      • Advanced drafting techniques
    • FAQ
      • Why is it that some users cannot see the ‘Templates’ feature?
      • Are Templates cross-platform?
      • Can I insert conditional images?
      • How do I update a template?
      • Why does the interactive preview sometimes fail to show numbering correctly?
      • How can I make a clause with multiple paragraphs conditional more efficiently?
      • How can I change the type of a question when creating a Smart Template?
  • Administration
    • Preferences
    • Managing folders
    • Managing attributes
    • Managing users
    • Linked Accounts
    • Managing access-bundles
    • Write & Rewrite
    • Export templates
    • External subscriptions
    • Access Matrix
    • Consult ClauseBuddy Usage Statistics
    • FAQ
      • I lost my login code!
      • Can I set-up a personal library for an individual user?
      • How do I delete a user?
      • Can I give someone else access to the admin account?
      • If I add a subscription, can this person see it and is my subscription also added to him?
      • I have access to ClauseBuddy, do I also have access to Clause9?
      • Is there 2 factor authentication for ClauseBuddy?
      • Can we choose which LLM is applied in ClauseBuddy?
Powered by GitBook
On this page
  • Adding a new custom LLM
  • LLM settings
  • Priority Order
  • Relation with profiles
Export as PDF
  1. Generative AI

Custom LLMs

PreviousCompose DocumentNextFAQ

Last updated 3 months ago

Adding a new custom LLM

As mentioned in , ClauseBuddy integrates with Microsoft Azure's version of GPT4 by default. However, admin can configure additional custom LLMs like so:

From the LLMs preferences pane click + Add new LLM and fill out the form as appropriate. Then click Save.

Notes:

  • Use "anthropic", "openai" or "azure" (all in lowercase) if you're using the Claude, Azure GPT4 or OpenAI GPT4 models. If those identifiers are entered, some special settings are applied behind-the-scenes.

  • The Query param string is entirely optional.

  • For Azure GPT4 (i.e. when "azure" is entered as the "Provider"):

    • the provided endpoint is automatically suffixed with /openai/deployments/[model]/chat/completions

    • if the "Query param string" is entered, then that is suffixed as well to the endpoint URL, otherwise a recent version of Microsoft's API is suffixed by default (e.g., "?api-version=2024-03-01-preview")

  • Your API Key is stored in an encrypted manner at the ClauseBase servers, and will not show up in this editing box in the future.

LLM settings

Conceptually there’s a two-step process undertaken by ClauseBuddy to determine whether a certain LLM can be used by a particular user.

As a first step, ClauseBuddy checks whether, in general, the LLM is available to this particular user.

If you add an LLM to the system, then either it is

  • available to everyone (= the standard setting), or

  • you can restrict it to a subset of your users, by checking the "Restricted" box at the bottom of the settings of a particular LLM, and then adding it to one or more user Profiles.

The second step performed by ClauseBuddy is to take the list of LLMs that remains from the list above, and then to check what the user is actually doing (e.g., drafting a clause, or reviewing a document, or ...) to find a match.

For example, assuming that GPT4o, Claude and Noxtua are added to the system.

  • You can then for example say that Claude is reserved to users with profile "Senior Lawyer" and "Partner".

  • Optionally, you can then for example also say that Claude must only be used for reviewing.

  • A user with profile "Senior Lawyer" will then see Claude being listed when undertaking a reviewing-related activity in ClauseBuddy. If the same user goes to the summary module however, Claude will not be listed there.

Priority Order

In addition, when multiple LLMs are available to users it becomes important which LLM would be used by default, when no particular selection is made and the user has not previously made a selection. Admin can configure this with 'Edit priority order' like so:

In this case the admin saved the order Claude 3 Opus (Large) -> Azure GPT4, resulting — in AI modules that support both LLMs — in the following drop-down for users with Claude 3 Opus (Large) pre-selected:

If the user simply clicks 'Draft' here, and hasn't previously made a selection, Claude 3 Opus (Large) would be used right away, because it is the highest-priority LLM available for this AI module.

In this way, setting LLM priority order affects both:

  • the default LLM used for each AI module, and

  • the order of the drop-down that appears when multiple LLMs are available to a given AI module.

Relation with profiles

Individual LLMs (including ClauseBase default LLMs: shown in italics) can be configured to be available only in the context of specific AI modules (such as or ) by editing their Settings:

If you have the enterprise-version of ClauseBuddy, you can also configure LLM settings in combination with profiles of users. See the page on for more information.

Compose Document
DocAnswer
Managing Users
Using AI in ClauseBuddy