{"id":5308,"date":"2024-11-21T14:00:35","date_gmt":"2024-11-21T14:00:35","guid":{"rendered":"https:\/\/www.patentclaimmaster.com\/blog\/?p=5308"},"modified":"2024-11-27T18:11:36","modified_gmt":"2024-11-27T18:11:36","slug":"configuring-document-workspaces-gpt-llms-patent-drafting","status":"publish","type":"post","link":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/","title":{"rendered":"Configuring document workspaces for GPT\/LLM patent drafting"},"content":{"rendered":"<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/www.patentclaimmaster.com\/blog\/\">Home<\/a><\/span> \u00bb <span><a href=\"https:\/\/www.patentclaimmaster.com\/blog\/category\/step-by-step-tutorials\/\">Tutorials<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">Configuring document workspaces for GPT\/LLM patent drafting<\/span><\/span><\/div>\n\n\n<br>\n\n\n\n<p><a href=\"https:\/\/www.patentclaimmaster.com\/\">ClaimMaster<\/a>&#8216;s <a href=\"https:\/\/www.patentclaimmaster.com\/patent-application-drafting.html\">patent application drafting<\/a> tools use a local database of selected document sections (i.e., &#8220;document workspaces&#8221;) to perform <a href=\"https:\/\/help.openai.com\/en\/articles\/8868588-retrieval-augmented-generation-rag-and-semantic-search-for-gpts\" target=\"_blank\" rel=\"noreferrer noopener\">Retrieval Augmented Generation (RAG)<\/a> when creating text with GPT\/LLM models.  RAG is the process of retrieving relevant contextual information from a database of document snippets and passing that information to the LLM alongside the user\u2019s prompt to improve its output quality. The RAG architecture in ClaimMaster uses semantic searching to find contextually relevant data based on the conceptual similarity of the input prompt. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/10\/rag-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"608\" height=\"338\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/10\/rag-2.png\" alt=\"\" class=\"wp-image-5239\" srcset=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/10\/rag-2.png 608w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/10\/rag-2-300x167.png 300w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/10\/rag-2-600x334.png 600w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/a><\/figure>\n\n\n\n<p>The use of RAG is very useful for GenAI-enhanced patent drafting, as it allows you to pass text from the selected document sections of previous applications (e.g., Background, Abstract, claims, etc.) to the LLM to get better output results from the model. For example, if you are drafting a patent application for a particular client in semiconductor industry, the default GPT\/LLM is able to draft text using its base knowledge of semiconductors, but it might not know enough about the client&#8217;s niche area and it also doesn&#8217;t have access to the examples or specific term definitions used in the previous applications for the same client. With RAG, you can get much better results by setting up a document workspace that includes sections of your client&#8217;s previous applications, enabling the GPT\/LLM to use that context to generate more relevant output for this client. When you use the document workspaces feature with ClaimMaster, RAG is being performed automatically for each prompt that is configured to use that document workspace. &nbsp;<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"schema-how-to wp-block-yoast-how-to-block\"><p class=\"schema-how-to-description\">To set up local document workspaces for your GPT\/LLM prompts, perform the following steps: <br><\/p> <ol class=\"schema-how-to-steps\"><li class=\"schema-how-to-step\" id=\"how-to-step-1650220310711\"><strong class=\"schema-how-to-step-name\">Configure the source for generating vector embeddings of your documents<\/strong> <p class=\"schema-how-to-step-text\">Semantic searches convert text queries to their mathematical vector format (i.e., vector embeddings) and use those vectors to search the vector database for the closest conceptual matches.  Vector embeddings are generated using GPT\/LLM. Notably, the same GPT\/LLM source should be used both generating embeddings from the prompts and from the documents stored in the vector database.  <br\/><br\/>To specify the LLM for generating embeddings, click on the\u00a0<strong>Preferences, Extra Tools, Help<\/strong> menu,<strong>\u00a0<\/strong>then click on <strong>Preferences<\/strong>, then switch to <strong>Patent Drafting<\/strong> tab and click on <strong>GPT\/LLM Settings <\/strong>button.  In the settings window that comes up, specify valid RAG embeddings and LLM\/GPT sources configured in GPT\/LLM settings.  Make sure to use the same service, either OpenAI, Azure OpenAI, or Ollama.  If you are using a private GPT model hosted in Azure or OpenAI, you&#8217;ll need to specify the endpoint for generating embeddings provided to you by Azure.<br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"467\" height=\"195\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/embedding_source.png\" class=\"attachment-full size-full\" alt=\"GPT\/LLM embedding source\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/embedding_source.png 467w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/embedding_source-300x125.png 300w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><br\/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1650226894705\"><strong class=\"schema-how-to-step-name\">Configure one or more local document workspaces<\/strong> <p class=\"schema-how-to-step-text\">Next, specify which documents you want to include into your local document workspace. A workspace could be a set of documents specific to a particular clients, technology, etc.<br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"520\" height=\"504\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/workspace_template-1.png\" class=\"attachment-full size-full\" alt=\"local document workspace\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/workspace_template-1.png 520w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/workspace_template-1-300x291.png 300w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><br\/><br\/>Note &#8211; the initial process of generating embeddings is quite slow.  To speed up the generation of embeddings, it is recommended that you remove all sections from your documents that would not be useful for text generation.  This will also improve search results when looking up relevant text snippets.<br\/><br\/>Once you load your document sections into the workspace, you can check its contents by switching to the &#8220;<strong>Workspace Contents<\/strong>&#8221; tab and clicking on the &#8220;<strong>View stored workspace snippets<\/strong>&#8221; button.  This will let you preview all of the stored workspace contents (non-editable).<br\/><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"319\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/workspace_contents.png\" class=\"attachment-500x319.14893617021 size-500x319.14893617021\" alt=\"show workspace contents\" srcset=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/workspace_contents.png 564w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/workspace_contents-300x191.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1732207143219\"><strong class=\"schema-how-to-step-name\">Configure default workspace\/instructions for any GPT\/LLM prompt template (Optional)<\/strong> <p class=\"schema-how-to-step-text\">Configure your GPT\/LLM prompts to use one of the specified local document workspaces under the Local Documents tab, as shown here. This will be the default workspace for this prompt template. You can also directly set the desired workspace when before you send the drafting prompt to your GPT\/LLM source.<br\/><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"193\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/configure_workspace_for_gpt_template-1.png\" class=\"attachment-full size-full\" alt=\"configure_workspace_for_gpt_template\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/configure_workspace_for_gpt_template-1.png 496w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/configure_workspace_for_gpt_template-1-300x117.png 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><br\/><br\/>As part of specifying the workspace settings for the prompt, you can provide specific RAG prompt\/instructions that will be used when providing context to GPT\/LLM (along with the original prompt). \u00a0<strong>[RAGDATA]<\/strong> placeholder field will be used to populate the retrieved context with the text snippets returned from the workspace in the instructions to LLM.  You can further use ### separators to distinguish the returned text snippets from the instructions to LLM. \u00a0In particular, you can control how the LLM interprets and uses information from your provided context. For example, if the prompt is &#8220;u<em>se ONLY the following information to answer the posed question: ### [RAGDATA]###<\/em>&#8220;, then the LLM will use <strong><span style=\"text-decoration: underline;\">only <\/span><\/strong>information in your snippets to generate the response. On the other hand, if your RAG prompt is &#8220;<em>use the following information in addition to you knowledge to answer the posed question: ### [RAGDATA]###<\/em>&#8220;, then LLM with supplement its response with your provided context, but will not rely on it exclusively.<\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1732203336759\"><strong class=\"schema-how-to-step-name\">Specify the desired workspace before sending the GPT\/LLM prompt  (Optional)<\/strong> <p class=\"schema-how-to-step-text\">When generating text with LLM, select the local workspace (and other related workspace settings) as part of the configured GPT\/LLM prompt. You can use either the default workspace specified in the template or pick another one using the drop-down menu:<br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"445\" height=\"214\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/configure_workspace_for_gpt_template_2.png\" class=\"attachment-full size-full\" alt=\"When generating text with LLM, select the local workspace (and other related workspace settings) as part of the configured GPT\/LLM prompt. You can use either the default workspace specified in the template or pick another one using the drop-down menu\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/configure_workspace_for_gpt_template_2.png 445w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/configure_workspace_for_gpt_template_2-300x144.png 300w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><br\/><br\/>You can also test your currently selected LLM prompt with the contents of the configured workspace.  Just click on the &#8220;<strong>Test with current LLM prompt<\/strong>&#8221; button to see which snippets from the document workspace are extracted from the vector database and are used to supplement your prompt:<br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"375\" height=\"492\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/rag_test_prompt.png\" class=\"attachment-400x524.8 size-400x524.8\" alt=\"test rag with workspace\" srcset=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/rag_test_prompt.png 375w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/rag_test_prompt-229x300.png 229w\" sizes=\"auto, (max-width: 375px) 100vw, 375px\" \/><br\/><br\/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1732231618433\"><strong class=\"schema-how-to-step-name\">Send the prompt to the configured GPT\/LLM<\/strong> <p class=\"schema-how-to-step-text\">Once you&#8217;ve specified the desired workspace for the prompt (or using the default workspace configured for the prompt template), click &#8220;<strong>Send prompt to LLM<\/strong>&#8221; to send the prompt to the configured GPT\/LLM source for processing.<br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"370\" height=\"288\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/llm_prompt.png\" class=\"attachment-full size-full\" alt=\"send gpt\/llm prompt\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/llm_prompt.png 370w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/llm_prompt-300x234.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><br\/><br\/>Notably, by default ClaimMaster will attempt to pull text snippets from the database that are the most contextually similar to your prompt. \u00a0However, in some cases you may want to get all contents of a particular workspace that match a particular section filter (e.g., all Background or Abstract sections). \u00a0In this case, you can simply insert the wildcard character &#8220;*&#8221; into your GPT\/LLM prompt, such as shown below.<br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"363\" height=\"142\" src=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/wildcard_rag_instruction.png\" class=\"attachment-full size-full\" alt=\"wildcard_rag_instruction\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/wildcard_rag_instruction.png 363w, https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/wildcard_rag_instruction-300x117.png 300w\" sizes=\"auto, (max-width: 363px) 100vw, 363px\" \/><br\/><br\/>When ClaimMaster sees &#8220;*&#8221; in the prompt, it will not attempt to find the closest match from the vector database in your prompt, but rather will return all entries (limited by the # of snippets) from the specified workspace that match the specified document section filter.<\/p> <\/li><\/ol><\/div>\n<\/div><\/div>\n<\/div><\/div>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>F<\/p>\n\n\n\n<p>For more information on this feature, check out the <a href=\"https:\/\/www.patentclaimmaster.com\/help\/GeneratetextwithOpenAIsGPT.html\" target=\"_blank\" rel=\"noreferrer noopener\">Online Manual<\/a>.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.patentclaimmaster.com\/blog\/step-by-step-claimmaster-tutorials\/\">Read other Step-by-step tutorials<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ClaimMaster&#8217;s patent application drafting tools use a local database of selected document sections (i.e., &#8220;document workspaces&#8221;) to perform Retrieval Augmented Generation (RAG) when creating text with GPT\/LLM models.<\/p>\n","protected":false},"author":1,"featured_media":5330,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1733,50],"tags":[19],"class_list":["post-5308","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-patent-drafting-tools","category-step-by-step-tutorials","tag-patent-drafting-tools"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.6 (Yoast SEO v28.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Configuring document workspaces for GPT\/LLM patent drafting - ClaimMaster Software<\/title>\n<meta name=\"description\" content=\"ClaimMaster patent application drafting tools use local document workspaces to improve GPT\/LLM output quality.\" \/>\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\/configuring-document-workspaces-gpt-llms-patent-drafting\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configuring document workspaces for GPT\/LLM patent drafting\" \/>\n<meta property=\"og:description\" content=\"ClaimMaster patent application drafting tools use local document workspaces to improve GPT\/LLM output quality.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/\" \/>\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-11-21T14:00:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-27T18:11:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/rag.png\" \/>\n\t<meta property=\"og:image:width\" content=\"608\" \/>\n\t<meta property=\"og:image:height\" content=\"338\" \/>\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=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/\"},\"author\":{\"name\":\"claimmaster\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/#\\\/schema\\\/person\\\/8c68201b55660ea55029d5579bfd8e0d\"},\"headline\":\"Configuring document workspaces for GPT\\\/LLM patent drafting\",\"datePublished\":\"2024-11-21T14:00:35+00:00\",\"dateModified\":\"2024-11-27T18:11:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/\"},\"wordCount\":1060,\"publisher\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/rag.png\",\"keywords\":[\"Patent Drafting Tools\"],\"articleSection\":[\"Patent Drafting Tools\",\"Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/\",\"name\":\"Configuring document workspaces for GPT\\\/LLM patent drafting - ClaimMaster Software\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/rag.png\",\"datePublished\":\"2024-11-21T14:00:35+00:00\",\"dateModified\":\"2024-11-27T18:11:36+00:00\",\"description\":\"ClaimMaster patent application drafting tools use local document workspaces to improve GPT\\\/LLM output quality.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/rag.png\",\"contentUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/rag.png\",\"width\":608,\"height\":338},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorials\",\"item\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/category\\\/step-by-step-tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Configuring document workspaces for GPT\\\/LLM patent drafting\"}]},{\"@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\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#howto-1\",\"name\":\"Configuring document workspaces for GPT\\\/LLM patent drafting\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#article\"},\"description\":\"To set up local document workspaces for your GPT\\\/LLM prompts, perform the following steps: &lt;br>\",\"step\":[{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#how-to-step-1650220310711\",\"name\":\"Configure the source for generating vector embeddings of your documents\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Semantic searches convert text queries to their mathematical vector format (i.e., vector embeddings) and use those vectors to search the vector database for the closest conceptual matches.  Vector embeddings are generated using GPT\\\/LLM. Notably, the same GPT\\\/LLM source should be used both generating embeddings from the prompts and from the documents stored in the vector database.  To specify the LLM for generating embeddings, click on the\u00a0Preferences, Extra Tools, Help menu,\u00a0then click on Preferences, then switch to Patent Drafting tab and click on GPT\\\/LLM Settings button.  In the settings window that comes up, specify valid RAG embeddings and LLM\\\/GPT sources configured in GPT\\\/LLM settings.  Make sure to use the same service, either OpenAI, Azure OpenAI, or Ollama.  If you are using a private GPT model hosted in Azure or OpenAI, you'll need to specify the endpoint for generating embeddings provided to you by Azure.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#schema-image-cc39e460c6f977b2c46ac63de18642f6\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/embedding_source.png\",\"contentUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/embedding_source.png\",\"width\":467,\"height\":195,\"caption\":\"GPT\\\/LLM embedding source\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#how-to-step-1650226894705\",\"name\":\"Configure one or more local document workspaces\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Next, specify which documents you want to include into your local document workspace. A workspace could be a set of documents specific to a particular clients, technology, etc.Note - the initial process of generating embeddings is quite slow.  To speed up the generation of embeddings, it is recommended that you remove all sections from your documents that would not be useful for text generation.  This will also improve search results when looking up relevant text snippets.Once you load your document sections into the workspace, you can check its contents by switching to the \\\"Workspace Contents\\\" tab and clicking on the \\\"View stored workspace snippets\\\" button.  This will let you preview all of the stored workspace contents (non-editable).\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#schema-image-63b49cb6235037f45e4decd5372b8094\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/workspace_contents.png\",\"contentUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/workspace_contents.png\",\"width\":564,\"height\":360,\"caption\":\"show workspace contents\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#how-to-step-1732207143219\",\"name\":\"Configure default workspace\\\/instructions for any GPT\\\/LLM prompt template (Optional)\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Configure your GPT\\\/LLM prompts to use one of the specified local document workspaces under the Local Documents tab, as shown here. This will be the default workspace for this prompt template. You can also directly set the desired workspace when before you send the drafting prompt to your GPT\\\/LLM source.As part of specifying the workspace settings for the prompt, you can provide specific RAG prompt\\\/instructions that will be used when providing context to GPT\\\/LLM (along with the original prompt). \u00a0[RAGDATA] placeholder field will be used to populate the retrieved context with the text snippets returned from the workspace in the instructions to LLM.  You can further use ### separators to distinguish the returned text snippets from the instructions to LLM. \u00a0In particular, you can control how the LLM interprets and uses information from your provided context. For example, if the prompt is \\\"use ONLY the following information to answer the posed question: ### [RAGDATA]###\\\", then the LLM will use only information in your snippets to generate the response. On the other hand, if your RAG prompt is \\\"use the following information in addition to you knowledge to answer the posed question: ### [RAGDATA]###\\\", then LLM with supplement its response with your provided context, but will not rely on it exclusively.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#schema-image-78d429b63f0bdd8b89dcdacf7fc26ab6\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/configure_workspace_for_gpt_template-1.png\",\"contentUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/configure_workspace_for_gpt_template-1.png\",\"width\":496,\"height\":193,\"caption\":\"configure_workspace_for_gpt_template\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#how-to-step-1732203336759\",\"name\":\"Specify the desired workspace before sending the GPT\\\/LLM prompt (Optional)\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"When generating text with LLM, select the local workspace (and other related workspace settings) as part of the configured GPT\\\/LLM prompt. You can use either the default workspace specified in the template or pick another one using the drop-down menu:You can also test your currently selected LLM prompt with the contents of the configured workspace.  Just click on the \\\"Test with current LLM prompt\\\" button to see which snippets from the document workspace are extracted from the vector database and are used to supplement your prompt:\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#schema-image-deb8e46462543dcf9004427947be12b2\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/rag_test_prompt.png\",\"contentUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/rag_test_prompt.png\",\"width\":375,\"height\":492,\"caption\":\"test rag with workspace\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#how-to-step-1732231618433\",\"name\":\"Send the prompt to the configured GPT\\\/LLM\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Once you've specified the desired workspace for the prompt (or using the default workspace configured for the prompt template), click \\\"Send prompt to LLM\\\" to send the prompt to the configured GPT\\\/LLM source for processing.Notably, by default ClaimMaster will attempt to pull text snippets from the database that are the most contextually similar to your prompt. \u00a0However, in some cases you may want to get all contents of a particular workspace that match a particular section filter (e.g., all Background or Abstract sections). \u00a0In this case, you can simply insert the wildcard character \\\"*\\\" into your GPT\\\/LLM prompt, such as shown below.When ClaimMaster sees \\\"*\\\" in the prompt, it will not attempt to find the closest match from the vector database in your prompt, but rather will return all entries (limited by the # of snippets) from the specified workspace that match the specified document section filter.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/configuring-document-workspaces-gpt-llms-patent-drafting\\\/#schema-image-ea5912771f7f1e8e297bc4672d3a3530\",\"url\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/wildcard_rag_instruction.png\",\"contentUrl\":\"https:\\\/\\\/www.patentclaimmaster.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/wildcard_rag_instruction.png\",\"width\":363,\"height\":142,\"caption\":\"wildcard_rag_instruction\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Configuring document workspaces for GPT\/LLM patent drafting - ClaimMaster Software","description":"ClaimMaster patent application drafting tools use local document workspaces to improve GPT\/LLM output quality.","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\/configuring-document-workspaces-gpt-llms-patent-drafting\/","og_locale":"en_US","og_type":"article","og_title":"Configuring document workspaces for GPT\/LLM patent drafting","og_description":"ClaimMaster patent application drafting tools use local document workspaces to improve GPT\/LLM output quality.","og_url":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/","og_site_name":"ClaimMaster Software","article_publisher":"http:\/\/www.facebook.com\/home.php#%21%2fpages%2fClaimMaster%2f146814495334003%3fref%3dsgm","article_published_time":"2024-11-21T14:00:35+00:00","article_modified_time":"2024-11-27T18:11:36+00:00","og_image":[{"width":608,"height":338,"url":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/rag.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":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#article","isPartOf":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/"},"author":{"name":"claimmaster","@id":"https:\/\/www.patentclaimmaster.com\/blog\/#\/schema\/person\/8c68201b55660ea55029d5579bfd8e0d"},"headline":"Configuring document workspaces for GPT\/LLM patent drafting","datePublished":"2024-11-21T14:00:35+00:00","dateModified":"2024-11-27T18:11:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/"},"wordCount":1060,"publisher":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#primaryimage"},"thumbnailUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/rag.png","keywords":["Patent Drafting Tools"],"articleSection":["Patent Drafting Tools","Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/","url":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/","name":"Configuring document workspaces for GPT\/LLM patent drafting - ClaimMaster Software","isPartOf":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#primaryimage"},"image":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#primaryimage"},"thumbnailUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/rag.png","datePublished":"2024-11-21T14:00:35+00:00","dateModified":"2024-11-27T18:11:36+00:00","description":"ClaimMaster patent application drafting tools use local document workspaces to improve GPT\/LLM output quality.","breadcrumb":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#primaryimage","url":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/rag.png","contentUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/rag.png","width":608,"height":338},{"@type":"BreadcrumbList","@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.patentclaimmaster.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Tutorials","item":"https:\/\/www.patentclaimmaster.com\/blog\/category\/step-by-step-tutorials\/"},{"@type":"ListItem","position":3,"name":"Configuring document workspaces for GPT\/LLM patent drafting"}]},{"@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\/configuring-document-workspaces-gpt-llms-patent-drafting\/#howto-1","name":"Configuring document workspaces for GPT\/LLM patent drafting","mainEntityOfPage":{"@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#article"},"description":"To set up local document workspaces for your GPT\/LLM prompts, perform the following steps: &lt;br>","step":[{"@type":"HowToStep","url":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#how-to-step-1650220310711","name":"Configure the source for generating vector embeddings of your documents","itemListElement":[{"@type":"HowToDirection","text":"Semantic searches convert text queries to their mathematical vector format (i.e., vector embeddings) and use those vectors to search the vector database for the closest conceptual matches.  Vector embeddings are generated using GPT\/LLM. Notably, the same GPT\/LLM source should be used both generating embeddings from the prompts and from the documents stored in the vector database.  To specify the LLM for generating embeddings, click on the\u00a0Preferences, Extra Tools, Help menu,\u00a0then click on Preferences, then switch to Patent Drafting tab and click on GPT\/LLM Settings button.  In the settings window that comes up, specify valid RAG embeddings and LLM\/GPT sources configured in GPT\/LLM settings.  Make sure to use the same service, either OpenAI, Azure OpenAI, or Ollama.  If you are using a private GPT model hosted in Azure or OpenAI, you'll need to specify the endpoint for generating embeddings provided to you by Azure."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#schema-image-cc39e460c6f977b2c46ac63de18642f6","url":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/embedding_source.png","contentUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/embedding_source.png","width":467,"height":195,"caption":"GPT\/LLM embedding source"}},{"@type":"HowToStep","url":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#how-to-step-1650226894705","name":"Configure one or more local document workspaces","itemListElement":[{"@type":"HowToDirection","text":"Next, specify which documents you want to include into your local document workspace. A workspace could be a set of documents specific to a particular clients, technology, etc.Note - the initial process of generating embeddings is quite slow.  To speed up the generation of embeddings, it is recommended that you remove all sections from your documents that would not be useful for text generation.  This will also improve search results when looking up relevant text snippets.Once you load your document sections into the workspace, you can check its contents by switching to the \"Workspace Contents\" tab and clicking on the \"View stored workspace snippets\" button.  This will let you preview all of the stored workspace contents (non-editable)."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#schema-image-63b49cb6235037f45e4decd5372b8094","url":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/workspace_contents.png","contentUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/workspace_contents.png","width":564,"height":360,"caption":"show workspace contents"}},{"@type":"HowToStep","url":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#how-to-step-1732207143219","name":"Configure default workspace\/instructions for any GPT\/LLM prompt template (Optional)","itemListElement":[{"@type":"HowToDirection","text":"Configure your GPT\/LLM prompts to use one of the specified local document workspaces under the Local Documents tab, as shown here. This will be the default workspace for this prompt template. You can also directly set the desired workspace when before you send the drafting prompt to your GPT\/LLM source.As part of specifying the workspace settings for the prompt, you can provide specific RAG prompt\/instructions that will be used when providing context to GPT\/LLM (along with the original prompt). \u00a0[RAGDATA] placeholder field will be used to populate the retrieved context with the text snippets returned from the workspace in the instructions to LLM.  You can further use ### separators to distinguish the returned text snippets from the instructions to LLM. \u00a0In particular, you can control how the LLM interprets and uses information from your provided context. For example, if the prompt is \"use ONLY the following information to answer the posed question: ### [RAGDATA]###\", then the LLM will use only information in your snippets to generate the response. On the other hand, if your RAG prompt is \"use the following information in addition to you knowledge to answer the posed question: ### [RAGDATA]###\", then LLM with supplement its response with your provided context, but will not rely on it exclusively."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#schema-image-78d429b63f0bdd8b89dcdacf7fc26ab6","url":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/configure_workspace_for_gpt_template-1.png","contentUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/configure_workspace_for_gpt_template-1.png","width":496,"height":193,"caption":"configure_workspace_for_gpt_template"}},{"@type":"HowToStep","url":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#how-to-step-1732203336759","name":"Specify the desired workspace before sending the GPT\/LLM prompt (Optional)","itemListElement":[{"@type":"HowToDirection","text":"When generating text with LLM, select the local workspace (and other related workspace settings) as part of the configured GPT\/LLM prompt. You can use either the default workspace specified in the template or pick another one using the drop-down menu:You can also test your currently selected LLM prompt with the contents of the configured workspace.  Just click on the \"Test with current LLM prompt\" button to see which snippets from the document workspace are extracted from the vector database and are used to supplement your prompt:"}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#schema-image-deb8e46462543dcf9004427947be12b2","url":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/rag_test_prompt.png","contentUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/rag_test_prompt.png","width":375,"height":492,"caption":"test rag with workspace"}},{"@type":"HowToStep","url":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#how-to-step-1732231618433","name":"Send the prompt to the configured GPT\/LLM","itemListElement":[{"@type":"HowToDirection","text":"Once you've specified the desired workspace for the prompt (or using the default workspace configured for the prompt template), click \"Send prompt to LLM\" to send the prompt to the configured GPT\/LLM source for processing.Notably, by default ClaimMaster will attempt to pull text snippets from the database that are the most contextually similar to your prompt. \u00a0However, in some cases you may want to get all contents of a particular workspace that match a particular section filter (e.g., all Background or Abstract sections). \u00a0In this case, you can simply insert the wildcard character \"*\" into your GPT\/LLM prompt, such as shown below.When ClaimMaster sees \"*\" in the prompt, it will not attempt to find the closest match from the vector database in your prompt, but rather will return all entries (limited by the # of snippets) from the specified workspace that match the specified document section filter."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.patentclaimmaster.com\/blog\/configuring-document-workspaces-gpt-llms-patent-drafting\/#schema-image-ea5912771f7f1e8e297bc4672d3a3530","url":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/wildcard_rag_instruction.png","contentUrl":"https:\/\/www.patentclaimmaster.com\/blog\/wp-content\/uploads\/2024\/11\/wildcard_rag_instruction.png","width":363,"height":142,"caption":"wildcard_rag_instruction"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/posts\/5308","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=5308"}],"version-history":[{"count":28,"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/posts\/5308\/revisions"}],"predecessor-version":[{"id":5450,"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/posts\/5308\/revisions\/5450"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/media\/5330"}],"wp:attachment":[{"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/media?parent=5308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/categories?post=5308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.patentclaimmaster.com\/blog\/wp-json\/wp\/v2\/tags?post=5308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}