Difference between revisions of "LLM: ollama PDF RAG"

From OnnoWiki
Jump to navigation Jump to search
Line 4: Line 4:
  
  
  sudo apt install python3-virtualenv
+
  sudo apt install python3-virtualenv python3-pip
 
  virtualenv --python=python3 venv
 
  virtualenv --python=python3 venv
python3 -m venv venv
 
 
  source venv/bin/activate
 
  source venv/bin/activate
  
 
  git clone https://github.com/tonykipkemboi/ollama_pdf_rag.git
 
  git clone https://github.com/tonykipkemboi/ollama_pdf_rag.git
  
Install pip
+
Install
  
 
+
  cd ollama_pdf_rag
  sudo apt install python3-pip
 
 
  pip install -r requirements.txt
 
  pip install -r requirements.txt
 
GAGAL:
 
 
error: externally-managed-environment
 
 
× This environment is externally managed
 
╰─> To install Python packages system-wide, try apt install
 
    python3-xyz, where xyz is the package you are trying to
 
    install.
 
 
 
  
 
Jalankan apps
 
Jalankan apps

Revision as of 06:14, 16 July 2024

Sumber: https://github.com/tonykipkemboi/ollama_pdf_rag

Download source


sudo apt install python3-virtualenv python3-pip
virtualenv --python=python3 venv
source venv/bin/activate
git clone https://github.com/tonykipkemboi/ollama_pdf_rag.git

Install

cd ollama_pdf_rag
pip install -r requirements.txt

Jalankan apps

streamlit run streamlit_app.py



Referensi