Skip to content

Large Language Models

LangChain

Lang Chain Logo

LangChain is a framework for developing applications powered by LLMs.

Useful code

My Docs

Ollama

Ollama Logo

Official Docs

Ollama Site

The easiest way to run open source models.

Installation

With brew brew install ollama or direct download via Link

Usage

bash
# List downloaded models
ollama list

# Download models
ollama pull llama3:latest

# Run models
ollama run llama3

API

Query the model via request

bash
curl http://localhost:11434/api/generate -d '{
  "model": "llama3",
  "prompt": "Write a rock song!",
  "stream": false
}' | json_pp

Feel free to use any content here.