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
  • How does it work?
  • When is it useful?
  • How to use
  • Optimize search results (Truffle Hunt)
  • Extract legal features (Truffle Hunt & Quality Library)
  • Reorder (AutoSuggest)
  • Keep if (AutoSuggest)
  • Remove if (AutoSuggest)
Export as PDF
  1. Inspiration

Process results with AI

PreviousManaging Truffle Hunt basketsNextCompliance

Last updated 2 months ago

Within the Truffle Hunt Clauses mode, the AutoSuggest functionality and your Quality Library, you can filter down your clauses using the help of Artificial Intelligence:

How this works is mostly self-explanatory, but let's go through some of the details nevertheless.

How does it work?

Essentially ClauseBuddy will send your currently visible clauses to a Large Language Model (LLM, aka the new type of "GenAI" Artificial Intelligence), along with your search query or selected text. The AI will then be asked to judge each of those clauses, filter them where necessary, reorder them and send back the ordering.

When is it useful?

Truffle Hunt, AutoSuggest and the Quality Library use "smart" search by default, meaning that a superficial layer of artificial intelligence gets to look at your clauses to provide some level of intelligence that goes beyond a literal ("dumb") matching, as is the case with the "strict search". This level of intelligence is very fast (can process thousand results in less than a second) but the downside that the level of intelligence is superficial.

When you involve GenAI, however, a very deep level of intelligence is looking at your clauses. This takes several seconds and cannot encompass hundreds of clauses, but the results are much better though-out.

So all in all it's a balancing act with the current state of the technology, between strict search (super fast but dumb & literal), smart search (the default: reasonably fast, some intelligence) and post-processing with GenAI (slow, but very intelligent). As with all things in life, there are tradeoffs.

How to use

The Process results with AI button starts from your current selection of clauses.

The AI post-processing is currently limited to the top 50 clauses. While this amount may go up in the future (when GenAI gets faster) it is therefore very important that you first do a pre-selection with the other tools at your availability, such as the length & content filters in Truffle Hunt and the attributes in the Quality Library.

Once you have a rough selection, you then click on one of the options.

Optimize search results (Truffle Hunt)

ClauseBuddy will send your search query along with the truffles/clauses to the GenAI-engine. When the query contains multiple words, this is usually enough for the GenAI to figure our what you mean — for example, when your search query would be "liability invoice maximum", then the GenAI will probably figure out itself that you're looking for clauses that relate to liability and some invoicing maximum.

However, you can help the LLM in its job to filter your clauses by providing an additional hint in the Optional prompt box. For example, you can type in there "Only clauses limiting the liability of the supplier", or perhaps something like "don't include clauses relating to payment defaults".

Extract legal features (Truffle Hunt & Quality Library)

When you click this button, you'll see the GenAI group your clauses into different categories, with each clause in the same category sharing some legal "features". Clauses can belong to multiple categories at once.

For example, in the screenshot below, you can see that about fifteen categories of clauses were created — such as "insurance requirements" and "procurement procedures".

You can then select one or more categories of legal features to filter down what's visible on your screen. For example, if you select "Information security", you'll notice that only three clauses are selected, that all contain something related to information security.

If you then click another (non-light) category, you would further filter down. For example, if you also click on "Data Access and Processing Restrictions", you'll see only those clauses that both talk about information security and data access/processing restrictions.

A light-coloured category means "with your current selection of categories, you would end up with no results", because there are no clauses that belong to all those categories at once.

You can click on the small X at the right to remove the legal features view and return to the normal view.

Reorder (AutoSuggest)

AutoSuggest is all about getting clauses that are somewhat similar to your currently selected text. The most important post-processing functionality is therefore to simply reorder your current results, so that the most relevant ones — i.e. the most similar ones — are shown first.

The LLM will essentially take your currently selected text, and then figure out how much the clauses in the visible results relate to that selected text.

Keep if (AutoSuggest)

The Keep if option allows you to write down the criterion for keeping clauses in your result.

If, for example, your confidentiality clauses were extracted from both employment contracts and shareholder agreements, then you could envisage writing "about employees & employers" if you only want to keep the employment-related clauses.

Remove if (AutoSuggest)

This is the opposite of Keep if. If most results are OK but you want to get rid of a few, go for Remove if.

This button (located in the dropdown button below the brain-icon ) will filter your search results, so that only the clauses/truffles are kept that meet the filter.

This button (located in the dropdown button below the brain-icon ) will compare your currently visible clauses and allow you to easily make subselections.

This is how this button looks in the Truffle Hunt