Skip to content

LauzHack/rag-llamaindex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro to RAG with LlamaIndex

Presentation: Google Slide | PDF

Recording: Youtube

This workshop was first given by Pierre-Loic Doulcet on May 8, 2024 as part of LauzHack's tech talk series.

Setup and example

Below we setup a simple example to demonstrate how to use the LlamaIndex for RAG (Retrieval-Augmented Generation).

# create and activate virtual environment
conda create -n rag python=3.11
conda activate rag

# install llama index
pip install llama-index

# set up openai api key
export OPENAI_API_KEY=XXXXX

# run example
python test_llamaindex.py

You can try changing the question in the script, or putting other content in the data folder!

Want to learn more? Check out the LlamaIndex short course on DeepLearning.ai.