Skip to content

sultan-hassan/RAG-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAG-tutorial

A tutorial on building a Retrieval-Augmented Generation (RAG) system using Groq (Llama 3.1), LangChain, and Gradio.

🚀 Setup Instructions

1. Prerequisites

  • Install uv (The fastest Python manager).
  • Get a free API Key from Groq Cloud.

2. Clone the Repository

git clone https://github.com/sultan-hassan/RAG-tutorial.git
cd RAG-tutorial

3. Initialize the Environment

Using uv, you don't need to manually create a virtual environment. Run the following command to automatically install all required packages (Pandas, LangChain, Gradio, etc.):

uv sync

4. Configure Your API Key

To keep your API key secure, create a file named .env in the root folder of this project:

touch .env

Open the .env file and paste your Groq key:

groq_api_keys=your_gsk_key_here

5. Launch the Tutorial

To ensure Jupyter uses the correct environment and avoids "Package Not Found" errors, launch the notebook using this specific command:

uv run --with jupyter jupyter notebook tutorial.ipynb

About

RAG chatbot tutorial for Language AI Workshop 2026 at STScI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors