{"id":5064,"date":"2024-04-29T13:48:09","date_gmt":"2024-04-29T13:48:09","guid":{"rendered":"https:\/\/www.patentclaimmaster.com\/blog\/?p=5064"},"modified":"2024-10-07T17:26:08","modified_gmt":"2024-10-07T17:26:08","slug":"patent-drafting-local-generative-ai","status":"publish","type":"post","link":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/","title":{"rendered":"Patent Drafting Using Local Generative AI"},"content":{"rendered":"<div class=\"wp-block-image is-style-default\">\n<figure class=\"alignright size-full is-resized\"><a href=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/ollama-1.png\"><img decoding=\"async\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/ollama-1.png\" alt=\"\" class=\"wp-image-5171\" width=\"-24\" height=\"-35\"\/><\/a><\/figure>\n<\/div>\n\n\n<p>You can now use ClaimMaster&#8217;s <em>+Drafting <\/em><a href=\"https:\/\/www.patentclaimmaster.com\/generative-ai-patent-drafting.html\" target=\"_blank\" rel=\"noreferrer noopener\">patent drafting tools<\/a> with a completely local (i.e., offline) generative AI.  Specifically, we now integrate with <a href=\"https:\/\/ollama.com\/\">Ollama<\/a>, which is a free, lightweight desktop application that lets you run and interact with locally executing open-source Large Language Models (&#8220;LLMs&#8221;) in complete privacy without any cloud access.  Some of the local LLMs, such as <a href=\"https:\/\/ai.meta.com\/blog\/meta-llama-3\/\" target=\"_blank\" rel=\"noreferrer noopener\">Meta&#8217;s latest Llama3<\/a>, are said to rival OpenAI GPT in accuracy and performance. <strong>Critically, when you are using ClaimMaster with Ollama for patent drafting, all document processing happens directly on your computer, so that you and your clients don&#8217;t have to worry about how your confidential IP data is transmitted and stored in the cloud. <\/strong><\/p>\n\n\n\n<p>Ollama has a number of key advantages for patent professionals:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>It&#8217;s private<\/strong> &#8211; Ollama and its LLMs run and process all data only on your computer <em>without any Internet access<\/em>. You can use Ollama framework to download and locally run the latest open-source LLM models, such as <a href=\"https:\/\/ai.meta.com\/blog\/meta-llama-3\/\" target=\"_blank\" rel=\"noreferrer noopener\">Meta&#8217;s Llama3<\/a>.  Because it runs locally, you have complete control of your IP data.<\/li>\n\n\n\n<li><strong>It runs reasonably fast (with enough RAM) and is easy to use<\/strong> &#8211;  you don&#8217;t need a supercomputer to run Ollama, but it helps to have plenty of RAM and a GPU. For the best results it&#8217;s recommended to have a modern PC with Windows 10\/11, a 4 or 8-core processor, an SSD with 12-50 GB of free space for models, and plenty of RAM (8GB is the bare minimum but 16+ GB is really recommended). Considering how affordable additional RAM is these days (e.g., $65 for 32GB of desktop RAM <a href=\"https:\/\/www.amazon.com\/Corsair-VENGEANCE-3200MHz-Compatible-Computer\/dp\/B07RW6Z692\/ref=sr_1_3?crid=UR0NDBU48PBW&amp;dib=eyJ2IjoiMSJ9.m8ujfXoYkPF5o3Bi8JIHrV4cXFKQa0zZKMFTGKoRy1X5F0BkhPj2PyXY5JwREwR-svM_fbYFvfXusRJDrQQtKvvekYpsggpQDX9xJrL26qOZFmmOBcmo0ZAc1Ct24q-suNJBTUS1ddFHeUZoYEbHPjC8wdHW-xyxB2CbuG2uuUWeiy4qgxcjICgEPrTqHK2JbE1RJzrWMNqcyusV_g3uiDlGGhKWrZxvNp5KJ_mmuZI.3gGFIBATciAeZRMIpEYslZpEgw2jEpIHxk0Lo93SDUo&amp;dib_tag=se&amp;keywords=desktop%2Bram%2B32gb&amp;qid=1713987100&amp;sprefix=dekstop%2Bram%2B3%2Caps%2C78&amp;sr=8-3&amp;th=1\" target=\"_blank\" rel=\"noreferrer noopener\">on Amazon<\/a>), it shouldn&#8217;t be much of an issue to add more RAM to your computer. If you have an Nvidia or an AMD graphics card, Ollama can further improve performance via hardware acceleration. That said, you can run Ollama on a system with lower characteristics but you&#8217;ll likely notice fairly long response times to your prompts (e.g. 1 min or more).<\/li>\n\n\n\n<li><strong>It&#8217;s free <\/strong>&#8211; You can use it as often and with as much text as you&#8217;d like without worrying about additional token costs, as you would when accessing OpenAI and Azure OpenAI GPT via API.<\/li>\n\n\n\n<li><strong>It can be used for business <\/strong>&#8211; Ollama and most of its models are licensed under permissive MIT or Apache licenses, making it well-suited for commercial use by patent professionals.<\/li>\n<\/ol>\n\n\n\n<p>So if you have data privacy concerns about cloud-based OpenAI\/Azure GPT applications, using Ollama in combination with ClaimMaster seems like a no-brainer for a completely local AI solution for patent drafting.  It&#8217;s free, secure, and lets you access a number of powerful open-source LLMs to help with patent drafting. All you really need is a reasonably modern PC to run Ollama smoothly.  <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Below are the steps needed to install and run Ollama with ClaimMaster:<\/p>\n\n\n\n<div class=\"schema-how-to wp-block-yoast-how-to-block\"><p class=\"schema-how-to-description\"><\/p> <ol class=\"schema-how-to-steps\"><li class=\"schema-how-to-step\" id=\"how-to-step-1713985620027\"><strong class=\"schema-how-to-step-name\">Download and install Ollama for Windows<\/strong> <p class=\"schema-how-to-step-text\">You can download <a href=\"https:\/\/ollama.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Ollama <\/a>for Windows 10 or later from <a href=\"https:\/\/ollama.com\/download\/windows\" target=\"_blank\" rel=\"noreferrer noopener\">this link<\/a>.  Just run the installer once you download it.  <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"250\" height=\"229\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/2024-04-25_22-17-37-1-300x275.jpg\" class=\"attachment-250x229.42073170732 size-250x229.42073170732\" alt=\"ollama download\" srcset=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/2024-04-25_22-17-37-1-300x275.jpg 300w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/2024-04-25_22-17-37-1.jpg 328w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><br\/>After you install Ollama, it will automatically run in the background, so that applications like ClaimMaster can connect to it without further setup. You will see a neat little Ollama icon in your System Tray:<br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"200\" height=\"152\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/2024-04-25_22-13-22-1.jpg\" class=\"attachment-200x152.11267605634 size-200x152.11267605634\" alt=\"windows ollama \" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1713991219941\"><strong class=\"schema-how-to-step-name\">Install one or more LLM models inside Ollama<\/strong> <p class=\"schema-how-to-step-text\">You will also need to download one or more LLMs to use with Ollama.  Each LLM will normally require anywhere from 4GB to 20GB per model, depending on the complexity of the LLM.  To install a particular model, open Windows <strong>Command Prompt<\/strong> or <strong>PowerShell<\/strong>, then type <strong>&#8220;ollama run &lt;model-name><\/strong>, such as &#8220;<strong>\u201collama run llama3<\/strong>&#8220;.  A list of available models is <a href=\"https:\/\/ollama.com\/library\" target=\"_blank\" rel=\"noreferrer noopener\">available here<\/a>. If you haven&#8217;t used a particular model yet, it might take some time for it to download and install, depending on the size of the model and how fast your Internet connection is.  However, the next time you run Ollama with that model, it will run it from local storage, so it will be quite fast to start up.<br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"286\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/ollama_cmd.jpg\" class=\"attachment-full size-full\" alt=\"ollama command prompt\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/ollama_cmd.jpg 808w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/ollama_cmd-300x106.jpg 300w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/ollama_cmd-768x272.jpg 768w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/ollama_cmd-600x212.jpg 600w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><br\/><br\/>We recommend using <strong><a href=\"https:\/\/ollama.com\/library\/llama3\" target=\"_blank\" rel=\"noreferrer noopener\">llama3<\/a> <\/strong>or <a href=\"https:\/\/ollama.com\/library\/mistral\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>mistral <\/strong><\/a>models for text processing, rewriting, etc.  Llama3 is the latest LLM from Meta, released in April 2024.  Mistral LLM is also quite good.  As for vision\/image recognition, there is a multi-modal LLM called <a href=\"https:\/\/ollama.com\/library\/llava\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>LLaVa<\/strong><\/a>.  While its authors compare it to GPT Vision, in our testing it did not perform nearly as well when used for patent drafting.  Specifically, even the largest 20GB version of LLM (llava:34b-v1.6) had a hard time with recognizing element numbers in figures correctly, although it could generally identify the figure subject matter.  So at this time we can&#8217;t yet recommend  LLaVa specifically for patent drafting, although we hope that its next versions will perform better for this task.<br\/><br\/>To get help on available Ollama commands, type &#8220;<strong>ollama help&#8221;<\/strong> in command prompt.  Although Ollama is easy to set up, there is a ton of options\/configurability.<\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1713992097343\"><strong class=\"schema-how-to-step-name\">Configure ClaimMaster to connect to the local Ollama server<\/strong> <p class=\"schema-how-to-step-text\">The latest version of ClaimMaster (2024.1.0) with <strong>+Drafting <\/strong>add-on integrates directly with Ollama, so there isn&#8217;t much more to do other than installing Ollama and then selecting a particular model to run.   Download the latest ClaimMaster installer from <a href=\"https:\/\/secure.softwarekey.com\/solo\/customers\/default.aspx?AuthorID=3240429\" target=\"_blank\" rel=\"noreferrer noopener\">Customer Portal<\/a>.  Once you install version 2024.1.0 or later, go to <strong>ClaimMaster->Patent Drafting->GPT\/LLM Settings<\/strong>:<br\/><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"237\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/03\/gpt_settings1.png\" class=\"attachment-450x236.84210526316 size-450x236.84210526316\" alt=\"gpt_settings_selection\" srcset=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/03\/gpt_settings1.png 456w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/03\/gpt_settings1-300x158.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><br\/><br\/>In the LLM settings window, specify the following settings and then save them:<br\/>&#8220;<strong>Source<\/strong>&#8221; should be set to <strong>Local<\/strong><br\/>&#8220;<strong>Endpoint<\/strong>&#8221; should be set to Ollama&#8217;s default server address, which is &#8220;<strong>http:\/\/localhost:11434\/api\/generate<\/strong>&#8221; (use the pre-defined drop-down option)<br\/>&#8220;<strong>Model<\/strong>&#8221; should be set to &#8220;<strong>llama3&#8243;, &#8220;mistral&#8221;, &#8220;llava<\/strong>&#8221; or any other model that you&#8217;ve downloaded and installed via Ollama and want to use for patent drafting. <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"462\" height=\"344\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/ollama_cm.jpg\" class=\"attachment-full size-full\" alt=\"ollama claimmaster\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/ollama_cm.jpg 462w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/ollama_cm-300x223.jpg 300w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1709315248167\"><strong class=\"schema-how-to-step-name\">Send your prompts to the configured LLM source<\/strong> <p class=\"schema-how-to-step-text\">That&#8217;s it &#8211; once your LLM settings are configured to point to the local Ollama server, you can power up Ollama and start using ClaimMaster to send various patent drafting prompts to the locally running LLM directly from Word, as explained in other tutorials. <br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"369\" height=\"546\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/templates.png\" class=\"attachment-full size-full\" alt=\"claimmaster llm propmt\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/templates.png 369w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/templates-203x300.png 203w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><br\/><br\/>You can create and re-use as many LLM prompts as you&#8217;d like within ClaimMaster.  For example, some of the helpful things you can ask your local LLM to do include:<br\/>* Re-write a text portion to fix errors and make it more eloquent<br\/>* Add technical details to existing paragraph based on the discussed subject matter<br\/>* Explain or define a technical term or concept<br\/>* Write a paragraph or two explaining the state of problems with the current technology<br\/>* Draft a section of the application based on the passed-in subject matter, such as title, background, or even claims.<br\/><br\/>Notably, because we now offer the ability to integrate with different LLMs, you may notice that some prompts work better with specific LLMs than others.   To help you quickly identify prompts that are specific to a particular LLM model, you can list the model name at the end of the prompt name by enclosing it in square brackets.  For example, if you have configured two prompt templates <strong>Write figure description [llama]<\/strong> and <strong>Write figure description [gpt]<\/strong>, each template will only be available for selection in the <a href=\"https:\/\/www.patentclaimmaster.com\/help\/GeneratetextwithOpenAIsGPT.html\" target=\"_blank\" rel=\"noreferrer noopener\">Generate Text with GPT\/LLM<\/a> tool when its respective model is selected in Settings (either Llama or GPT).<br\/><\/p> <\/li><\/ol><\/div>\n\n\n\n<p>Ollama is a great tool. Now that ClaimMaster can integrate with local LLMs, we plan to soon add many new features, such as improved LLM prompts for specific models, ability to train LLMs on your local documents and also using LLMs for further improving accuracy of various patent proofreading, automation, and analysis tools in ClaimMaster.<\/p>\n\n\n\n<p>For now, here&#8217;s more information for using LLMs with ClaimMaster for patent drafting various sections of the patent specification:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.patentclaimmaster.com\/blog\/using-gpt-for-patent-drafting\/\" target=\"_blank\" rel=\"noreferrer noopener\">Using LLMs to generate text for patent drafting<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.patentclaimmaster.com\/blog\/new-gpt-patent-drafting-tools\/\" target=\"_blank\" rel=\"noreferrer noopener\">Using LLMs to re-write existing text<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.patentclaimmaster.com\/blog\/best-practices-for-gpt-prompt-engineering-when-patent-drafting\/\" target=\"_blank\" rel=\"noreferrer noopener\">Best practices for &#8220;prompt engineering&#8221; for patent drafting<\/a><\/li>\n<\/ul>\n\n\n\n<p>For more information about this feature, check out the <a href=\"https:\/\/www.patentclaimmaster.com\/help\/Generatefiguredescriptionblocks.html\" target=\"_blank\" rel=\"noreferrer noopener\">Online Manual.<\/a><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td>Note that to utilize ClaimMaster with Ollama, you will need the latest version of ClaimMaster (2024.1.0).  <strong>If you are a&nbsp;current +Drafting subscriber<\/strong>, download and install&nbsp;the latest release from&nbsp;<a href=\"https:\/\/secure.softwarekey.com\/solo\/customers\/default.aspx?AuthorID=3240429&amp;utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=new_claimmaster_2024_is_here&amp;utm_term=2024-03-13\" target=\"_blank\" rel=\"noreferrer noopener\">Customer Portal<\/a>&nbsp;by logging in&nbsp;using your license id, customer id, or email. <strong>If you are not +Drafting subscriber,<\/strong>&nbsp;you can extend your trial by&nbsp;downloading and installing <a href=\"https:\/\/www.patentclaimmaster.com\/CMTrialForm.html\" target=\"_blank\" rel=\"noreferrer noopener\">the latest trial version<\/a>. You can install over your existing installation and you&#8217;ll get additional time to test out ClaimMaster.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ClaimMaster now connects to Ollama, enabling you to use private, locally executing generative AI with ClaimMaster&#8217;s patent drafting and editing tools.<\/p>\n","protected":false},"author":1,"featured_media":5175,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,1733],"tags":[1742,19],"class_list":["post-5064","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-know-how","category-patent-drafting-tools","tag-new-release","tag-patent-drafting-tools"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.6 (Yoast SEO v28.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Patent Drafting Using Local Generative AI - ClaimMaster Software<\/title>\n<meta name=\"description\" content=\"ClaimMaster now integrates with local generative AI to let you draft patent applications in complete privacy without connection to the cloud.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Patent Drafting Using Local Generative AI\" \/>\n<meta property=\"og:description\" content=\"ClaimMaster now integrates with local generative AI to let you draft patent applications in complete privacy without connection to the cloud.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/\" \/>\n<meta property=\"og:site_name\" content=\"ClaimMaster Software\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/home.php#%21%2fpages%2fClaimMaster%2f146814495334003%3fref%3dsgm\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-29T13:48:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-07T17:26:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/automation_ollama-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"541\" \/>\n\t<meta property=\"og:image:height\" content=\"477\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"claimmaster\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ClaimMaster\" \/>\n<meta name=\"twitter:site\" content=\"@ClaimMaster\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"claimmaster\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/\"},\"author\":{\"name\":\"claimmaster\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/#\\\/schema\\\/person\\\/8c68201b55660ea55029d5579bfd8e0d\"},\"headline\":\"Patent Drafting Using Local Generative AI\",\"datePublished\":\"2024-04-29T13:48:09+00:00\",\"dateModified\":\"2024-10-07T17:26:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/\"},\"wordCount\":1376,\"publisher\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/automation_ollama-1.png\",\"keywords\":[\"New Release\",\"Patent Drafting Tools\"],\"articleSection\":[\"Know How\",\"Patent Drafting Tools\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/\",\"name\":\"Patent Drafting Using Local Generative AI - ClaimMaster Software\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/automation_ollama-1.png\",\"datePublished\":\"2024-04-29T13:48:09+00:00\",\"dateModified\":\"2024-10-07T17:26:08+00:00\",\"description\":\"ClaimMaster now integrates with local generative AI to let you draft patent applications in complete privacy without connection to the cloud.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/automation_ollama-1.png\",\"contentUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/automation_ollama-1.png\",\"width\":541,\"height\":477,\"caption\":\"patent drafting ollama\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Know How\",\"item\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/category\\\/know-how\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Patent Drafting Using Local Generative AI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/\",\"name\":\"ClaimMaster Software\",\"description\":\"Tools for patent proofreading, patent drafting, document automation, and patent analysis\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/#organization\",\"name\":\"ClaimMaster Software LLC\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/logo-small.png\",\"contentUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/logo-small.png\",\"width\":117,\"height\":15,\"caption\":\"ClaimMaster Software LLC\"},\"image\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/www.facebook.com\\\/home.php#!\\\/pages\\\/ClaimMaster\\\/146814495334003?ref=sgm\",\"https:\\\/\\\/x.com\\\/ClaimMaster\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/3158822\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/#\\\/schema\\\/person\\\/8c68201b55660ea55029d5579bfd8e0d\",\"name\":\"claimmaster\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a4abfa2ed4aabad1365faed0f2fa0d1f670c27cb5185211d049683ac16203d18?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a4abfa2ed4aabad1365faed0f2fa0d1f670c27cb5185211d049683ac16203d18?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a4abfa2ed4aabad1365faed0f2fa0d1f670c27cb5185211d049683ac16203d18?s=96&d=mm&r=g\",\"caption\":\"claimmaster\"}},{\"@type\":\"HowTo\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#howto-1\",\"name\":\"Patent Drafting Using Local Generative AI\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#article\"},\"description\":\"\",\"step\":[{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#how-to-step-1713985620027\",\"name\":\"Download and install Ollama for Windows\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"You can download Ollama for Windows 10 or later from this link.  Just run the installer once you download it.  After you install Ollama, it will automatically run in the background, so that applications like ClaimMaster can connect to it without further setup. You will see a neat little Ollama icon in your System Tray:\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#schema-image-685e43a22cb896f0df48e09efe8c75ac\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/2024-04-25_22-13-22-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/2024-04-25_22-13-22-1.jpg\",\"width\":213,\"height\":162,\"caption\":\"windows ollama\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#how-to-step-1713991219941\",\"name\":\"Install one or more LLM models inside Ollama\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"You will also need to download one or more LLMs to use with Ollama.  Each LLM will normally require anywhere from 4GB to 20GB per model, depending on the complexity of the LLM.  To install a particular model, open Windows Command Prompt or PowerShell, then type \\\"ollama run , such as \\\"\u201collama run llama3\\\".  A list of available models is available here. If you haven't used a particular model yet, it might take some time for it to download and install, depending on the size of the model and how fast your Internet connection is.  However, the next time you run Ollama with that model, it will run it from local storage, so it will be quite fast to start up.We recommend using llama3 or mistral models for text processing, rewriting, etc.  Llama3 is the latest LLM from Meta, released in April 2024.  Mistral LLM is also quite good.  As for vision\\\/image recognition, there is a multi-modal LLM called LLaVa.  While its authors compare it to GPT Vision, in our testing it did not perform nearly as well when used for patent drafting.  Specifically, even the largest 20GB version of LLM (llava:34b-v1.6) had a hard time with recognizing element numbers in figures correctly, although it could generally identify the figure subject matter.  So at this time we can't yet recommend  LLaVa specifically for patent drafting, although we hope that its next versions will perform better for this task.To get help on available Ollama commands, type \\\"ollama help\\\" in command prompt.  Although Ollama is easy to set up, there is a ton of options\\\/configurability.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#schema-image-42831f9783349e1d2c228219419e422c\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/ollama_cmd.jpg\",\"contentUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/ollama_cmd.jpg\",\"width\":808,\"height\":286,\"caption\":\"ollama command prompt\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#how-to-step-1713992097343\",\"name\":\"Configure ClaimMaster to connect to the local Ollama server\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"The latest version of ClaimMaster (2024.1.0) with +Drafting add-on integrates directly with Ollama, so there isn't much more to do other than installing Ollama and then selecting a particular model to run.   Download the latest ClaimMaster installer from Customer Portal.  Once you install version 2024.1.0 or later, go to ClaimMaster->Patent Drafting->GPT\\\/LLM Settings:In the LLM settings window, specify the following settings and then save them:\\\"Source\\\" should be set to Local\\\"Endpoint\\\" should be set to Ollama's default server address, which is \\\"http:\\\/\\\/localhost:11434\\\/api\\\/generate\\\" (use the pre-defined drop-down option)\\\"Model\\\" should be set to \\\"llama3\\\", \\\"mistral\\\", \\\"llava\\\" or any other model that you've downloaded and installed via Ollama and want to use for patent drafting.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#schema-image-d31b127a9e8c8bd99af5c1a08c29572a\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/ollama_cm.jpg\",\"contentUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/ollama_cm.jpg\",\"width\":462,\"height\":344,\"caption\":\"ollama claimmaster\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#how-to-step-1709315248167\",\"name\":\"Send your prompts to the configured LLM source\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"That's it - once your LLM settings are configured to point to the local Ollama server, you can power up Ollama and start using ClaimMaster to send various patent drafting prompts to the locally running LLM directly from Word, as explained in other tutorials. You can create and re-use as many LLM prompts as you'd like within ClaimMaster.  For example, some of the helpful things you can ask your local LLM to do include:* Re-write a text portion to fix errors and make it more eloquent* Add technical details to existing paragraph based on the discussed subject matter* Explain or define a technical term or concept* Write a paragraph or two explaining the state of problems with the current technology* Draft a section of the application based on the passed-in subject matter, such as title, background, or even claims.Notably, because we now offer the ability to integrate with different LLMs, you may notice that some prompts work better with specific LLMs than others.   To help you quickly identify prompts that are specific to a particular LLM model, you can list the model name at the end of the prompt name by enclosing it in square brackets.  For example, if you have configured two prompt templates Write figure description [llama] and Write figure description [gpt], each template will only be available for selection in the Generate Text with GPT\\\/LLM tool when its respective model is selected in Settings (either Llama or GPT).\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/patent-drafting-local-generative-ai\\\/#schema-image-0a66febc155c886087411cfc38e2aa3c\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/templates.png\",\"contentUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/templates.png\",\"width\":369,\"height\":546,\"caption\":\"claimmaster llm propmt\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Patent Drafting Using Local Generative AI - ClaimMaster Software","description":"ClaimMaster now integrates with local generative AI to let you draft patent applications in complete privacy without connection to the cloud.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/","og_locale":"en_US","og_type":"article","og_title":"Patent Drafting Using Local Generative AI","og_description":"ClaimMaster now integrates with local generative AI to let you draft patent applications in complete privacy without connection to the cloud.","og_url":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/","og_site_name":"ClaimMaster Software","article_publisher":"http:\/\/www.facebook.com\/home.php#%21%2fpages%2fClaimMaster%2f146814495334003%3fref%3dsgm","article_published_time":"2024-04-29T13:48:09+00:00","article_modified_time":"2024-10-07T17:26:08+00:00","og_image":[{"width":541,"height":477,"url":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/automation_ollama-1.png","type":"image\/png"}],"author":"claimmaster","twitter_card":"summary_large_image","twitter_creator":"@ClaimMaster","twitter_site":"@ClaimMaster","twitter_misc":{"Written by":"claimmaster","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#article","isPartOf":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/"},"author":{"name":"claimmaster","@id":"https:\/\/www.patentclaimmaster.com\/blog\/#\/schema\/person\/8c68201b55660ea55029d5579bfd8e0d"},"headline":"Patent Drafting Using Local Generative AI","datePublished":"2024-04-29T13:48:09+00:00","dateModified":"2024-10-07T17:26:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/"},"wordCount":1376,"publisher":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#primaryimage"},"thumbnailUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/automation_ollama-1.png","keywords":["New Release","Patent Drafting Tools"],"articleSection":["Know How","Patent Drafting Tools"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/","url":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/","name":"Patent Drafting Using Local Generative AI - ClaimMaster Software","isPartOf":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#primaryimage"},"image":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#primaryimage"},"thumbnailUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/automation_ollama-1.png","datePublished":"2024-04-29T13:48:09+00:00","dateModified":"2024-10-07T17:26:08+00:00","description":"ClaimMaster now integrates with local generative AI to let you draft patent applications in complete privacy without connection to the cloud.","breadcrumb":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#primaryimage","url":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/automation_ollama-1.png","contentUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/automation_ollama-1.png","width":541,"height":477,"caption":"patent drafting ollama"},{"@type":"BreadcrumbList","@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.patentclaimmaster.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Know How","item":"https:\/\/www.patentclaimmaster.com\/blog\/category\/know-how\/"},{"@type":"ListItem","position":3,"name":"Patent Drafting Using Local Generative AI"}]},{"@type":"WebSite","@id":"https:\/\/www.patentclaimmaster.com\/blog\/#website","url":"https:\/\/www.patentclaimmaster.com\/blog\/","name":"ClaimMaster Software","description":"Tools for patent proofreading, patent drafting, document automation, and patent analysis","publisher":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.patentclaimmaster.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.patentclaimmaster.com\/blog\/#organization","name":"ClaimMaster Software LLC","url":"https:\/\/www.patentclaimmaster.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.patentclaimmaster.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2020\/05\/logo-small.png","contentUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2020\/05\/logo-small.png","width":117,"height":15,"caption":"ClaimMaster Software LLC"},"image":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/www.facebook.com\/home.php#!\/pages\/ClaimMaster\/146814495334003?ref=sgm","https:\/\/x.com\/ClaimMaster","https:\/\/www.linkedin.com\/company\/3158822"]},{"@type":"Person","@id":"https:\/\/www.patentclaimmaster.com\/blog\/#\/schema\/person\/8c68201b55660ea55029d5579bfd8e0d","name":"claimmaster","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a4abfa2ed4aabad1365faed0f2fa0d1f670c27cb5185211d049683ac16203d18?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a4abfa2ed4aabad1365faed0f2fa0d1f670c27cb5185211d049683ac16203d18?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a4abfa2ed4aabad1365faed0f2fa0d1f670c27cb5185211d049683ac16203d18?s=96&d=mm&r=g","caption":"claimmaster"}},{"@type":"HowTo","@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#howto-1","name":"Patent Drafting Using Local Generative AI","mainEntityOfPage":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#article"},"description":"","step":[{"@type":"HowToStep","url":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#how-to-step-1713985620027","name":"Download and install Ollama for Windows","itemListElement":[{"@type":"HowToDirection","text":"You can download Ollama for Windows 10 or later from this link.  Just run the installer once you download it.  After you install Ollama, it will automatically run in the background, so that applications like ClaimMaster can connect to it without further setup. You will see a neat little Ollama icon in your System Tray:"}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#schema-image-685e43a22cb896f0df48e09efe8c75ac","url":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/2024-04-25_22-13-22-1.jpg","contentUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/2024-04-25_22-13-22-1.jpg","width":213,"height":162,"caption":"windows ollama"}},{"@type":"HowToStep","url":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#how-to-step-1713991219941","name":"Install one or more LLM models inside Ollama","itemListElement":[{"@type":"HowToDirection","text":"You will also need to download one or more LLMs to use with Ollama.  Each LLM will normally require anywhere from 4GB to 20GB per model, depending on the complexity of the LLM.  To install a particular model, open Windows Command Prompt or PowerShell, then type \"ollama run , such as \"\u201collama run llama3\".  A list of available models is available here. If you haven't used a particular model yet, it might take some time for it to download and install, depending on the size of the model and how fast your Internet connection is.  However, the next time you run Ollama with that model, it will run it from local storage, so it will be quite fast to start up.We recommend using llama3 or mistral models for text processing, rewriting, etc.  Llama3 is the latest LLM from Meta, released in April 2024.  Mistral LLM is also quite good.  As for vision\/image recognition, there is a multi-modal LLM called LLaVa.  While its authors compare it to GPT Vision, in our testing it did not perform nearly as well when used for patent drafting.  Specifically, even the largest 20GB version of LLM (llava:34b-v1.6) had a hard time with recognizing element numbers in figures correctly, although it could generally identify the figure subject matter.  So at this time we can't yet recommend  LLaVa specifically for patent drafting, although we hope that its next versions will perform better for this task.To get help on available Ollama commands, type \"ollama help\" in command prompt.  Although Ollama is easy to set up, there is a ton of options\/configurability."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#schema-image-42831f9783349e1d2c228219419e422c","url":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/ollama_cmd.jpg","contentUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/ollama_cmd.jpg","width":808,"height":286,"caption":"ollama command prompt"}},{"@type":"HowToStep","url":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#how-to-step-1713992097343","name":"Configure ClaimMaster to connect to the local Ollama server","itemListElement":[{"@type":"HowToDirection","text":"The latest version of ClaimMaster (2024.1.0) with +Drafting add-on integrates directly with Ollama, so there isn't much more to do other than installing Ollama and then selecting a particular model to run.   Download the latest ClaimMaster installer from Customer Portal.  Once you install version 2024.1.0 or later, go to ClaimMaster->Patent Drafting->GPT\/LLM Settings:In the LLM settings window, specify the following settings and then save them:\"Source\" should be set to Local\"Endpoint\" should be set to Ollama's default server address, which is \"http:\/\/localhost:11434\/api\/generate\" (use the pre-defined drop-down option)\"Model\" should be set to \"llama3\", \"mistral\", \"llava\" or any other model that you've downloaded and installed via Ollama and want to use for patent drafting."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#schema-image-d31b127a9e8c8bd99af5c1a08c29572a","url":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/ollama_cm.jpg","contentUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/ollama_cm.jpg","width":462,"height":344,"caption":"ollama claimmaster"}},{"@type":"HowToStep","url":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#how-to-step-1709315248167","name":"Send your prompts to the configured LLM source","itemListElement":[{"@type":"HowToDirection","text":"That's it - once your LLM settings are configured to point to the local Ollama server, you can power up Ollama and start using ClaimMaster to send various patent drafting prompts to the locally running LLM directly from Word, as explained in other tutorials. You can create and re-use as many LLM prompts as you'd like within ClaimMaster.  For example, some of the helpful things you can ask your local LLM to do include:* Re-write a text portion to fix errors and make it more eloquent* Add technical details to existing paragraph based on the discussed subject matter* Explain or define a technical term or concept* Write a paragraph or two explaining the state of problems with the current technology* Draft a section of the application based on the passed-in subject matter, such as title, background, or even claims.Notably, because we now offer the ability to integrate with different LLMs, you may notice that some prompts work better with specific LLMs than others.   To help you quickly identify prompts that are specific to a particular LLM model, you can list the model name at the end of the prompt name by enclosing it in square brackets.  For example, if you have configured two prompt templates Write figure description [llama] and Write figure description [gpt], each template will only be available for selection in the Generate Text with GPT\/LLM tool when its respective model is selected in Settings (either Llama or GPT)."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.patentclaimmaster.com\/blog\/patent-drafting-local-generative-ai\/#schema-image-0a66febc155c886087411cfc38e2aa3c","url":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/templates.png","contentUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/04\/templates.png","width":369,"height":546,"caption":"claimmaster llm propmt"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/posts\/5064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/comments?post=5064"}],"version-history":[{"count":93,"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/posts\/5064\/revisions"}],"predecessor-version":[{"id":5181,"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/posts\/5064\/revisions\/5181"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/media\/5175"}],"wp:attachment":[{"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/media?parent=5064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/categories?post=5064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/tags?post=5064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}