<iframe class="gist-iframe" src="/gist/ashhadulislam/837626b460b4b5bf24bda41483be29eb.js" allowfullscreen="" frameborder="0" height="undefined" width="undefined">
</div>
</div>
</figure></iframe></div></div></figure><p id="4e0c">This code works for the versions mentioned at the beginning of the article.</p><p id="5112">With the llama_index being updated everyday, we expect code to change.
This story will be updated according to newer versions of llama_index.</p><p id="5ebb">Following are my other llm related articles:</p><h2 id="fe64">Open Source LLM:</h2><p id="b1ff"><b>PDF Related</b></p><p id="f3b7"><a href="https://readmedium.com/5d7af78d1999">Super Quick: Retrieval Augmented Generation (RAG) with Llama 2.0 on Company Information using CPU</a></p><p id="925e"><a href="https://python.plainenglish.io/super-quick-fine-tuning-llama-2-0-on-cpu-with-personal-data-d2d284559f">Super Quick: Fine-tuning LLAMA 2.0 on CPU with personal data</a></p><p id="8ede"><b>Database Related</b></p><p id="e5fb"><a href="https://readmedium.com/a71131cd3866">Super Quick: LLAMA2 on CPU Machine to Generate SQL Queries from Schema</a></p><h2 id
Options
="10f8">Close Source LLM (OpenAI):</h2><p id="3a37"><b>PDF Related</b></p><p id="2115"><a href="https://python.plainenglish.io/super-quick-pdf-based-chatgpt-tutorial-in-python-3a26f55dbf13">Super Quick PDF-based ChatGPT Tutorial in Python</a></p><p id="4fb9"><a href="https://python.plainenglish.io/chatbot-document-retrieval-asking-non-trivial-questions-c9b1560becb6">Chatbot Document Retrieval: Asking Non-Trivial Questions</a></p><p id="28f2"><b>Database Related</b></p><p id="3045"><a href="https://ashhadulislam.medium.com/super-quick-connecting-chatgpt-to-a-postgresql-database-5eb1c441f843">Super Quick: Connecting ChatGPT to a PostgreSQL database</a></p><p id="0014"><i>More content at <a href="https://plainenglish.io/"><b>PlainEnglish.io</b></a>.</i></p><p id="4b72"><i>Sign up for our <a href="http://newsletter.plainenglish.io/"><b>free weekly newsletter</b></a>. Follow us on <a href="https://twitter.com/inPlainEngHQ"><b>Twitter</b></a></i>, <a href="https://www.linkedin.com/company/inplainenglish/"><b><i>LinkedIn</i></b></a><i>, <a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><b>YouTube</b></a>, and <a href="https://discord.gg/GtDtUAvyhW"><b>Discord</b></a><b>.</b></i></p></article></body>
Super Quick PDF-based ChatGPT Tutorial in Python
For the super quick tutorial on getting your chatbot to talk to a postgresql database files, go here.
Updated 6th June, 2023
ChatGPT libraries are being updated almost daily. So the tutorial articles to set up the chatbot in medium quickly become defunct. The code base in this article is built on the following.