Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/faranak-cs/rag

RAGs
https://github.com/faranak-cs/rag

retreival-augmented-generation

Last synced: 1 day ago
JSON representation

RAGs

Awesome Lists containing this project

README

        

# Retrieval-Augmented Generation (RAGs)
RAG models are seq2seq models with access to a retrieval mechanism providing relevant context documents at training and evaluation time.

# Setup
0. Install [Python 3.12.5](https://www.python.org/downloads/). Install [Ollama](https://ollama.com/download) and pull down Llama3.1 using following command on Terminal:
```
ollama pull llama3.1
```
1. Clone the repo
```
https://github.com/faranak-cs/rag.git
```
2. Creat virtual envrionment
```
python3 -m venv rag.env
```
3. Activate virtual environment
```
source rag.env/bin/activate
```
4. Install packages
```
python -m pip install -r requirements.txt
```
5. Populate database
```
python populate_database.py
```
6. Ask questions
```
python query_data.py "How many players are there in monopoly?"
```
# Output
![Query](https://github.com/user-attachments/assets/1cfdd90d-c333-44d9-a8a9-9453d46dd3d9)