LLM: RAG contoh
Revision as of 12:44, 15 July 2024 by Onnowpurbo (talk | contribs) (Created page with "Contoh: https://www.youtube.com/watch?v=7VAs22LC7WE python3 -m venv venv source venv/bin/activate pip3 install langchain_community Edit apps.py from langchain_commun...")
Contoh: https://www.youtube.com/watch?v=7VAs22LC7WE
python3 -m venv venv source venv/bin/activate
pip3 install langchain_community
Edit apps.py
from langchain_community.llms import Ollama llm = Ollama(model="llama3") responds=llm.invoke("Why the sky is blue?") print(responds)
Run
python3 apps.py