❗️ 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
datafolder -
Run streamlit app:
streamlit run app.pyIf there is another streamlit installed you can run streamlit from specified enviroment:
.venv/bin/python -m streamlit run app.py -
Press
Loadbutton for getting embeddings of pdf-file(s) -
Ask model about content