Member-only story
GenAI with Python: RAG with LLM (Complete Tutorial)
Build your own ChatGPT with multimodal data and run it on your laptop without GPU
In this article, I will show how to build a simple AI that can effectively learn knowledge from your personal documents and answer questions.
Intro
Natural Language Processing (NLP) is the field of Artificial Intelligence that studies the interaction between machines and human language. The peak of NLP, so far, has been the arrival of Large Language Models (LLM), trained on enormous amounts of text data, able to learn language patterns and variations. The term “Language Model” became common with the rise of Deep Learning and Neural Networks. In particular in 2018, when Google introduced the Transformer-based architecture, which significantly improved the performance of NLP models (Goolge’s BERT and OpenAI’s GPT).
Today, LLMs are typically used for Text-to-Text tasks or “Text Generation” (i.e. translation, summarization, chatbots and virtual assistants, or even writing entire books). Thanks to that, we have witnessed the rise of Generative Artificial Intelligence (GenAI), which is the field of the industry that focuses on creating new content (i.e. text, images, audio, video).