❗️ Forked and modified from: https://github.com/pixegami/rag-tutorial-v2
-
Download and install ollama and pull models:
ollama pull llama3 ollama pull mxbai-embed-large
-
Create and activate enviroment:
python -m venv .venv source .venv/bin/activate
-
Install dependencies:
pip install requirements.txt
-
Add pdf files to
data
folder -
Run streamlit app:
streamlit run app.py
If there is another streamlit installed you can run streamlit from specified enviroment:
.venv/bin/python -m streamlit run app.py
-
Press
Load
button for getting embeddings of pdf-file(s) -
Ask model about content