All You Need to Know to Build Your First LLM App

<blockquote> <p>If you are just looking for a short tutorial that explains how to build a simple LLM application, you can skip to section &ldquo;6. Creating a Vector store&rdquo;, there you have all the code snippets you need to build up a minimalistic LLM app with vector store, prompt template and LLM call.</p> </blockquote> <p><strong>Intro</strong></p> <p><a href="https://towardsdatascience.com/all-you-need-to-know-to-build-your-first-llm-app-eb982c78ffac#d5e4" rel="noopener ugc nofollow">Why we need LLMs</a><br /> <a href="https://towardsdatascience.com/all-you-need-to-know-to-build-your-first-llm-app-eb982c78ffac#f0e7" rel="noopener ugc nofollow">Fine-Tuning vs. Context Injection</a><br /> <a href="https://towardsdatascience.com/all-you-need-to-know-to-build-your-first-llm-app-eb982c78ffac#b9f0" rel="noopener ugc nofollow">What is LangChain?</a></p> <p><strong>Step-by-Step Tutorial</strong></p> <p><a href="https://towardsdatascience.com/all-you-need-to-know-to-build-your-first-llm-app-eb982c78ffac#dcec" rel="noopener ugc nofollow">1. Load documents using LangChain</a><br /> <a href="https://towardsdatascience.com/all-you-need-to-know-to-build-your-first-llm-app-eb982c78ffac#2e88" rel="noopener ugc nofollow">2. Split our Documents into Text Chunks</a><br /> <a href="https://towardsdatascience.com/all-you-need-to-know-to-build-your-first-llm-app-eb982c78ffac#335e" rel="noopener ugc nofollow">3. From Text Chunks to Embeddings</a><br /> <a href="https://towardsdatascience.com/all-you-need-to-know-to-build-your-first-llm-app-eb982c78ffac#b5ab" rel="noopener ugc nofollow">4. Define the LLM you want to use</a><br /> <a href="https://towardsdatascience.com/all-you-need-to-know-to-build-your-first-llm-app-eb982c78ffac#5e34" rel="noopener ugc nofollow">5. Define our Prompt Template</a><br /> <a href="https://towardsdatascience.com/all-you-need-to-know-to-build-your-first-llm-app-eb982c78ffac#4cff" rel="noopener ugc nofollow">6. Creating a Vector Store</a></p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:700/1*Xt7hGKpbtPDK_qqxZPmLPw.png" style="height:702px; width:700px" /></p> <p>Table of contents</p> <h1>Why we need LLMs</h1> <p>The evolution of language has brought us humans incredibly far to this day. It enables us to efficiently share knowledge and collaborate in the form we know today. Consequently, most of our collective knowledge continues to be preserved and communicated through unorganized written texts.</p> <p>Initiatives undertaken over the past two decades to digitize information and processes have often focused on accumulating more and more data in relational databases. This approach enables traditional analytical machine learning algorithms to process and understand our data.</p> <p><a href="https://towardsdatascience.com/all-you-need-to-know-to-build-your-first-llm-app-eb982c78ffac">Read More</a></p>