Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 748 Bytes

File metadata and controls

26 lines (21 loc) · 748 Bytes

rag-tutorial

Basic RAG model tutorial

Setup Instructions

Ensure python3 installed

For basic tutorial: Run the following code in terminal to install necessary packages

pip install sentence-transformers transformers faiss-cpu numpy sentencepiece protobuf

For add your own context file:

pip install langchain langchain-huggingface langchain-community langchain-openai langchain-core faiss-cpu

Setup Errors (debug info)

Following package may fail during installation (tested with python 3.13)

pip install sentencepiece

If this command gives an error message, refer to the following options.

  • Filenotfound error: do pip install wheel & install cmake from website
  • Otherwise, try running a different python version