Skip to content

Improving Retrieval Mechanism in Retrieval-Augmented Generation Architecture

License

Notifications You must be signed in to change notification settings

HOSSENkhodadadi/RAG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAG

Improving Retrieval Mechanism in Retrieval-Augmented Generation Architecture

This project performs semantic search using a custom-trained mapper and FAISS/ScaNN. https://colab.research.google.com/drive/1iYPJ2S3M5cEdvQSaa9UtFJ_846ZLO2Y-#scrollTo=B9ja7XCi8HUx put the dataset in dataset.py not preprocess.py

Features

  • FAISS/ScaNN vector search
  • SentenceTransformer embeddings
  • Custom trainable mapper network
  • HotpotQA + MS MARCO datasets

Setup

pip install -r requirements.txt
python -m spacy download en_core_web_sm

About

Improving Retrieval Mechanism in Retrieval-Augmented Generation Architecture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published