This is a simple python implementation of a vector store that showcase the ability to use an embedding model to store documents in an high dimensional vector space, and do similarity search to retrieve the most relevant documents. Furthermore it showcase how this can then be used to do RAG with an LLM like mistral without the need of libraries like Langchain or LlamaIndex
Everything relevant to the implementation is explained and implemented inside a .ipn ... file -> this
-
Install Ollama for the RAG
-
Install the model we are using:
ollama pull mistral
git clone https://github.com/Jac-Zac/IR_Vector_Store_RAG && cd https://github.com/Jac-Zac/IR_Vector_Store_RA
python -m venv .env
source .env/bin/activate
If you are having problems with jupyter
ipython kernel install --name "local-venv-kernel" --user
pip install -r requirements.txt