MENU

Fun & Interesting

Run DeepSeek R1 Locally With Ollama | Build a Local Gradio App for RAG

DataCamp 14,782 2 months ago
Video Not Working? Fix It Now

In this tutorial, you’ll learn how to download DeepSeek R1 on your local machine to securely query PDF documents using retrieval-augmented generation (RAG). We walk through every step, from downloading and configuring the model with Ollama to building a Gradio-based web app that processes PDF files using LangChain and vector databases. Whether you’re on a Mac or Windows, this video covers data preprocessing, text embedding, and semantic search, giving you a comprehensive understanding of local AI-assisted document queries without any reliance on the cloud. ? Resources & Tutorials To copy the solution code, press on this link: https://bit.ly/4hpF3du — You may need to sign up (for free!) to DataLab Developing LLM Applications with LangChain - https://www.datacamp.com/courses/developing-llm-applications-with-langchain How Transformers Work - https://www.datacamp.com/tutorial/how-transformers-work Fine-Tuning DeepSeek R1 Reasoning Model - https://www.datacamp.com/tutorial/fine-tuning-deepseek-r1-reasoning-model DeepSeek R1 Blog Overview - https://www.datacamp.com/blog/deepseek-r1 Understanding Janus Pro - https://www.datacamp.com/blog/janus-pro DeepSeek R1 Project Walkthrough - https://www.datacamp.com/tutorial/deepseek-r1-project DeepSeek vs ChatGPT - https://www.datacamp.com/blog/deepseek-vs-chatgpt Qwen-2.5 MAX Model - https://www.datacamp.com/blog/qwen-2-5-max DeepSeek R1 Ollama Tutorial - https://www.datacamp.com/tutorial/deepseek-r1-ollama Installing Anaconda on Windows - https://www.datacamp.com/tutorial/installing-anaconda-windows Installing Anaconda on Mac OS - https://www.datacamp.com/tutorial/installing-anaconda-mac-os-x ? Chapters 00:00 Introduction 00:38 Why Run DeepSeek R1 Locally? 02:00 Overview of Retrieval-Augmented Generation (RAG) 05:20 Installing Ollama and Setting Up DeepSeek R1 09:50 Querying the Model Locally 14:40 Setting Up PDF Processing with LangChain 18:12 Understanding Embeddings and Vector Databases 25:05 Preprocessing PDF Files for RAG 32:30 Building the RAG Chain with LangChain 39:00 Creating a Gradio Web App for PDF Queries 43:30 Testing the PDF Query App 45:50 Uninstalling DeepSeek R1 and Ollama 47:30 Conclusion and Further Learning Resources ? Follow Us on Social Facebook: https://www.facebook.com/datacampinc/ Twitter: https://twitter.com/datacamp LinkedIn: https://www.linkedin.com/school/datacampinc/ Instagram: https://www.instagram.com/datacamp/ #deepseek #DeepSeekR1 #AIchatbot #retrievalaugmentedgeneration #langchain #ollama #vectordatabase #embeddings #pdfsearch #localAI #semanticsearch #gradioapp #MacBookAI #secureAI #locallanguagemodel #deepseektutorial #machinelearning #AIfordocuments #transformersAI #offlineAIapplications #pythonAI #datacamp

Comment