{"id":514,"date":"2023-02-23T22:19:12","date_gmt":"2023-02-23T22:19:12","guid":{"rendered":"https:\/\/bootstrap-it.com\/blog\/?p=514"},"modified":"2023-02-23T22:19:13","modified_gmt":"2023-02-23T22:19:13","slug":"using-gpt-3-as-a-content-management-system-cms","status":"publish","type":"post","link":"https:\/\/bootstrap-it.com\/blog\/?p=514","title":{"rendered":"Using GPT-3 As A Content Management System (CMS)"},"content":{"rendered":"<div id=\"s-share-buttons\" class=\"horizontal-w-c-circular s-share-w-c\"><a href=\"http:\/\/www.facebook.com\/sharer.php?u=https:\/\/bootstrap-it.com\/blog\/?p=514\" target=\"_blank\" title=\"Share to Facebook\" class=\"s3-facebook hint--top\"><\/a><a href=\"http:\/\/twitter.com\/intent\/tweet?text=Using GPT-3 As A Content Management System (CMS)&url=https:\/\/bootstrap-it.com\/blog\/?p=514\" target=\"_blank\"  title=\"Share to Twitter\" class=\"s3-twitter hint--top\"><\/a><a href=\"http:\/\/reddit.com\/submit?url=https:\/\/bootstrap-it.com\/blog\/?p=514&title=Using GPT-3 As A Content Management System (CMS)\" target=\"_blank\" title=\"Share to Reddit\" class=\"s3-reddit hint--top\"><\/a><a href=\"http:\/\/www.linkedin.com\/shareArticle?mini=true&url=https:\/\/bootstrap-it.com\/blog\/?p=514\" target=\"_blank\" title=\"Share to LinkedIn\" class=\"s3-linkedin hint--top\"><\/a><a href=\"mailto:?Subject=Using%20GPT-3%20As%20A%20Content%20Management%20System%20(CMS)&Body=Here%20is%20the%20link%20to%20the%20article:%20https:\/\/bootstrap-it.com\/blog\/?p=514\" title=\"Email this article\" class=\"s3-email hint--top\"><\/a><\/div>\n<p>It\u2019s been said that artificial intelligence (AI) won\u2019t put human beings out of work. But human beings who use AI&nbsp;<em>will<\/em>&nbsp;put those who don\u2019t use AI out of work. Put differently, AI has the power to make you much, much faster and better at what you already do.<\/p>\n\n\n\n<p>Do you code for a living? Consulting&nbsp;<a href=\"https:\/\/chat.openai.com\/chat\">ChatGPT<\/a>&nbsp;when you\u2019ve hit a wall will nearly always get you through it faster than searching for a solution online (or leaving through a textbook). Do you write for a living? ChatGPT is more effective with outline creation and writer\u2019s block than buckets of Adderall.<\/p>\n\n\n\n<p>But it\u2019s not just about boosting your efficiency and speed. AI is also poised to redefine entire industries. To illustrate what I mean, let\u2019s talk about enterprise Content Management Systems (CMS).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-a-cms\">What is a CMS?<\/h2>\n\n\n\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Content_management_system\">A CMS<\/a>&nbsp;is any software system that manages extensive data archives meant to be accessed by multiple individuals and groups. Government departments or companies might expose some or all of their data to clients, customers, or vendors. That data might live within secure databases, but appropriately phrased requests could deliver precise subsets of that data to authorized consumers. As a rule, a good CMS will provide all or most of these features:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access control to ensure data is available only to authorized consumers<\/li>\n\n\n\n<li>Search and navigation<\/li>\n\n\n\n<li>Network connectivity to permit secure remote access<\/li>\n\n\n\n<li>Version control to provide data lifecycle management and appropriate attribution<\/li>\n\n\n\n<li>Multi-media management to incorporate plain-text, structured SQL, audio, and video resources<\/li>\n\n\n\n<li>Document creation tools<\/li>\n<\/ul>\n\n\n\n<p>Some popular CMS systems include&nbsp;<a href=\"https:\/\/www.atlassian.com\/software\/confluence\">Atlassian Confluence<\/a>&nbsp;and, in a very different way,&nbsp;<a href=\"https:\/\/wordpress.org\/\">WordPress<\/a>.<\/p>\n\n\n\n<p>It\u2019s also common for smaller businesses and other organizations to maintain extensive archives of documentation and \u201cinstitutional knowledge\u201d. But they often don\u2019t use formal CMS platforms, and this is the kind of use case we\u2019re going to discuss here.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"the-problem-of-data-management-in-informal-settings\">The problem of data management in informal settings<\/h2>\n\n\n\n<p>Organizations change. Employees come and go and, in between, change roles. And systems evolve. This means that any given data resource is as likely as not to fall out of date or simply get lost. Or the person who once knew where everything was is no longer around to ask.<\/p>\n\n\n\n<p>Is that not confusing enough? Well, consider how an organization\u2019s data and documents can be hosted on a dizzying range of hosts, including individual team members\u2019 PCs, local file servers, and cloud storage platforms. If you haven\u2019t got the money or &#8211; more important &#8211; the time to incorporate an industrial strength CMS into your workflow, you\u2019ll need something a bit more lightweight, which is precisely where AI tools like GPT-3 can come in.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-gpt-3-can-solve-your-document-management-problems\">How GPT-3 can solve your document management problems<\/h2>\n\n\n\n<p>The value of a CMS is in how it can help users can quickly find exactly the resources they need. The value of an internet search engine is in how it can help users quickly find the resources they need. Do you see a pattern here? More: to different degrees, both a good CMS and a search engine accept natural language inputs and, based on positional algorithms, return related information.<\/p>\n\n\n\n<p>But how much more powerful could those tools be if they actually&nbsp;<em>understood<\/em>&nbsp;the natural language requests. Now&nbsp;<strong>that<\/strong>&nbsp;is the secret superpower of AI. And how more powerful they still would be if they actually understood the content of the documents they\u2019re returning!<\/p>\n\n\n\n<p>To explain what I mean, I\u2019m going to show this to you in action &#8211; although on a very small scale.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-gpt-3-as-a-cms\">Using GPT-3 as a CMS<\/h2>\n\n\n\n<p>Imagine that your organization relies on documentation stretched across a handful of PCs and servers around your office. Different people created the documentation over many years, and it\u2019s stored in more than one format; you know: PDFs, spreadsheets, MS Word docs, meeting transcripts, etc. Now someone wants an answer to a question but doesn\u2019t even know&nbsp;<em>what<\/em>&nbsp;the right document is called, let alone where it\u2019s kept.<\/p>\n\n\n\n<p>Suppose you\u2019ve already exposed GPT-3 to your entire digital archive. And then suppose you used the contents of that archive to train the AI to \u201cunderstand\u201d your organization better than anyone. How, then, could you get the answer to your question?<\/p>\n\n\n\n<p>Simple. You sit down and type out a GPT-3 prompt. \u201cHow much did we pay for rent on our storage facility building over the past four years?\u201d Or: \u201cWho is the registered owner of our Amazon Web Services Organizations account?\u201d Or: \u201cCan you show me the immediately previous version of the source code for the data analytics app used by the web administration team?\u201d<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"training-gpt-3-on-private-data\">Training GPT-3 on private data<\/h2>\n\n\n\n<p>Here, in a very scaled-down way, is how that training might look using the GPT-3.5 API using Python.<\/p>\n\n\n\n<p>I\u2019ll first import a couple of libraries and the OpenAI access key (from a local file called&nbsp;<code>key<\/code>).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Import Required Libraries\nimport openai\nimport re\n\n# Reference your GPT-3 access key\nopenai.api_key_path = 'key'<\/code><\/pre>\n\n\n\n<p>I\u2019ll then read a single article into a variable called&nbsp;<code>text<\/code>. As it happens, this code comes from an actual experiment I recently ran as a proof of concept. The article here was the Markdown version of one chapter from a&nbsp;<a href=\"https:\/\/www.amazon.com\/Linux-Security-Fundamentals-David-Clinton\/dp\/1119781469\">book I\u2019d written on digital security<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Read in the Text File\nwith open(\"article1.md\", \"r\") as file:\n    text = file.read()<\/code><\/pre>\n\n\n\n<p>With our text document loaded, it\u2019s time to feed it to GPT-3 and then prompt it with a question. I\u2019ll specify I\u2019ll go with the&nbsp;<code>text-davinci-002<\/code>&nbsp;GPT engine. There\u2019s&nbsp;<a href=\"https:\/\/beta.openai.com\/docs\/api-reference\/completions\/create\">obviously more than one<\/a>, each with its own advantages. The&nbsp;<code>question<\/code>&nbsp;variable contains the question I\u2019d like to ask, while the&nbsp;<code>prompt<\/code>&nbsp;argument contains both the question and the document itself.&nbsp;<code>openai.Completion.create<\/code>&nbsp;is the actual command that makes everything happen.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Ask GPT-3 a Question\nquestion = \"Describe the primary topic of this text in 30 words or less.\"\nresponse = openai.Completion.create(\n    engine=\"text-davinci-002\",\n    prompt=f\"{question} {text}\",\n    max_tokens=1024,\n    temperature=0.5\n)\nprint(response&#91;\"choices\"]&#91;0]&#91;\"text\"])<\/code><\/pre>\n\n\n\n<p>After a few minutes spent thinking about things, GPT-3 got back to me with this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>This text provides an overview of digital security threats and tools for protection.<\/code><\/pre>\n\n\n\n<p>This shows that the AI effectively understood my question and the document\u2019s contents well enough to pull out that concise summary. Apply this process to all the documents in your archive, and you\u2019ll have an effective CMS that might be significantly better than any commercial package on the market today.<\/p>\n\n\n\n<p>Of course, I just showed you a very basic example. You\u2019ll need to optimize your code for cost and efficiency, apply it to a much more extensive range of resources, and then expose your trained AI model across your networks. It would probably also be helpful to wait for improved versions of GPT-3 (or GPT-4) that are on the way. But the principle itself seems workable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It\u2019s been said that artificial intelligence (AI) won\u2019t put human beings out of work. But human beings who use AI&nbsp;will&nbsp;put those who don\u2019t use AI out of work. Put differently, AI has the power to make you much, much faster&hellip; <a href=\"https:\/\/bootstrap-it.com\/blog\/?p=514\" class=\"more-link\">Continue Reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":515,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-514","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using GPT-3 As A Content Management System (CMS) - Bootstrap IT<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.openreplay.com\/using-gpt3-as-a-content-management-system\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using GPT-3 As A Content Management System (CMS) - Bootstrap IT\" \/>\n<meta property=\"og:description\" content=\"It\u2019s been said that artificial intelligence (AI) won\u2019t put human beings out of work. But human beings who use AI&nbsp;will&nbsp;put those who don\u2019t use AI out of work. Put differently, AI has the power to make you much, much faster&hellip; Continue Reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.openreplay.com\/using-gpt3-as-a-content-management-system\/\" \/>\n<meta property=\"og:site_name\" content=\"Bootstrap IT\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-23T22:19:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-23T22:19:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bootstrap-it.com\/blog\/wp-content\/uploads\/chatgpt_cms.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2401\" \/>\n\t<meta property=\"og:image:height\" content=\"1351\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"dbclin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@davidbclinton\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dbclin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/bootstrap-it.com\/blog\/?p=514\",\"url\":\"https:\/\/blog.openreplay.com\/using-gpt3-as-a-content-management-system\/\",\"name\":\"Using GPT-3 As A Content Management System (CMS) - Bootstrap IT\",\"isPartOf\":{\"@id\":\"https:\/\/bootstrap-it.com\/blog\/#website\"},\"datePublished\":\"2023-02-23T22:19:12+00:00\",\"dateModified\":\"2023-02-23T22:19:13+00:00\",\"author\":{\"@id\":\"https:\/\/bootstrap-it.com\/blog\/#\/schema\/person\/ae0fb1d5b3b01558b92b6426d77766ec\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.openreplay.com\/using-gpt3-as-a-content-management-system\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.openreplay.com\/using-gpt3-as-a-content-management-system\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.openreplay.com\/using-gpt3-as-a-content-management-system\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/bootstrap-it.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using GPT-3 As A Content Management System (CMS)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/bootstrap-it.com\/blog\/#website\",\"url\":\"https:\/\/bootstrap-it.com\/blog\/\",\"name\":\"Bootstrap IT\",\"description\":\"Learn technology using technology\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/bootstrap-it.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/bootstrap-it.com\/blog\/#\/schema\/person\/ae0fb1d5b3b01558b92b6426d77766ec\",\"name\":\"dbclin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/bootstrap-it.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a93785d437350478a7f1dfcbec58d26bc28e0124e405179acbe1b4325c09f90a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a93785d437350478a7f1dfcbec58d26bc28e0124e405179acbe1b4325c09f90a?s=96&d=mm&r=g\",\"caption\":\"dbclin\"},\"sameAs\":[\"http:\/\/bootstrap-it.com\/\",\"dbclinton\",\"https:\/\/twitter.com\/davidbclinton\"],\"url\":\"https:\/\/bootstrap-it.com\/blog\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using GPT-3 As A Content Management System (CMS) - Bootstrap IT","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:\/\/blog.openreplay.com\/using-gpt3-as-a-content-management-system\/","og_locale":"en_US","og_type":"article","og_title":"Using GPT-3 As A Content Management System (CMS) - Bootstrap IT","og_description":"It\u2019s been said that artificial intelligence (AI) won\u2019t put human beings out of work. But human beings who use AI&nbsp;will&nbsp;put those who don\u2019t use AI out of work. Put differently, AI has the power to make you much, much faster&hellip; Continue Reading &rarr;","og_url":"https:\/\/blog.openreplay.com\/using-gpt3-as-a-content-management-system\/","og_site_name":"Bootstrap IT","article_published_time":"2023-02-23T22:19:12+00:00","article_modified_time":"2023-02-23T22:19:13+00:00","og_image":[{"width":2401,"height":1351,"url":"https:\/\/bootstrap-it.com\/blog\/wp-content\/uploads\/chatgpt_cms.png","type":"image\/png"}],"author":"dbclin","twitter_card":"summary_large_image","twitter_creator":"@davidbclinton","twitter_misc":{"Written by":"dbclin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/bootstrap-it.com\/blog\/?p=514","url":"https:\/\/blog.openreplay.com\/using-gpt3-as-a-content-management-system\/","name":"Using GPT-3 As A Content Management System (CMS) - Bootstrap IT","isPartOf":{"@id":"https:\/\/bootstrap-it.com\/blog\/#website"},"datePublished":"2023-02-23T22:19:12+00:00","dateModified":"2023-02-23T22:19:13+00:00","author":{"@id":"https:\/\/bootstrap-it.com\/blog\/#\/schema\/person\/ae0fb1d5b3b01558b92b6426d77766ec"},"breadcrumb":{"@id":"https:\/\/blog.openreplay.com\/using-gpt3-as-a-content-management-system\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.openreplay.com\/using-gpt3-as-a-content-management-system\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.openreplay.com\/using-gpt3-as-a-content-management-system\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bootstrap-it.com\/blog"},{"@type":"ListItem","position":2,"name":"Using GPT-3 As A Content Management System (CMS)"}]},{"@type":"WebSite","@id":"https:\/\/bootstrap-it.com\/blog\/#website","url":"https:\/\/bootstrap-it.com\/blog\/","name":"Bootstrap IT","description":"Learn technology using technology","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/bootstrap-it.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/bootstrap-it.com\/blog\/#\/schema\/person\/ae0fb1d5b3b01558b92b6426d77766ec","name":"dbclin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bootstrap-it.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a93785d437350478a7f1dfcbec58d26bc28e0124e405179acbe1b4325c09f90a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a93785d437350478a7f1dfcbec58d26bc28e0124e405179acbe1b4325c09f90a?s=96&d=mm&r=g","caption":"dbclin"},"sameAs":["http:\/\/bootstrap-it.com\/","dbclinton","https:\/\/twitter.com\/davidbclinton"],"url":"https:\/\/bootstrap-it.com\/blog\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/bootstrap-it.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bootstrap-it.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bootstrap-it.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bootstrap-it.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bootstrap-it.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=514"}],"version-history":[{"count":1,"href":"https:\/\/bootstrap-it.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/514\/revisions"}],"predecessor-version":[{"id":516,"href":"https:\/\/bootstrap-it.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/514\/revisions\/516"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bootstrap-it.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/515"}],"wp:attachment":[{"href":"https:\/\/bootstrap-it.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bootstrap-it.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bootstrap-it.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}