Difference between revisions of "LLM: RAG-streamlit-llamaindex-ollama"

From OnnoWiki
Jump to navigation Jump to search
Line 6: Line 6:
 
  ollama pull llama3
 
  ollama pull llama3
  
 
+
sudo apt install python3.12-venv
  python -m venv venv
+
  python3 -m venv venv
 
  source venv/bin/activate
 
  source venv/bin/activate
  
  
Download app.py & requirement.txt dari
+
Download app.py & requirements.txt dari
  
 
  https://lightning.ai/maxidiazbattan/studios/rag-streamlit-llamaindex-ollama?tab=files&layout=column&path=cloudspaces%2F01hwfjrdss66hkje94vb7enf15&y=2&x=0
 
  https://lightning.ai/maxidiazbattan/studios/rag-streamlit-llamaindex-ollama?tab=files&layout=column&path=cloudspaces%2F01hwfjrdss66hkje94vb7enf15&y=2&x=0
 +
 +
copas ke file app.py & requirements.txt
 +
 +
 +
pip install -r requirements.txt
 +
streamlit run app.py
 +
 +
 +
Browse
 +
 +
http://ipaddress:8501
  
  

Revision as of 14:49, 16 July 2024

Sumber: https://lightning.ai/maxidiazbattan/studios/rag-streamlit-llamaindex-ollama?tab=overview


ollama serve
ollama pull llama3
sudo apt install python3.12-venv
python3 -m venv venv
source venv/bin/activate


Download app.py & requirements.txt dari

https://lightning.ai/maxidiazbattan/studios/rag-streamlit-llamaindex-ollama?tab=files&layout=column&path=cloudspaces%2F01hwfjrdss66hkje94vb7enf15&y=2&x=0

copas ke file app.py & requirements.txt


pip install -r requirements.txt
streamlit run app.py


Browse

http://ipaddress:8501



Referensi

Pranala Menarik