/dspy-ollama-prompting

🤖 WIP: Use dspy to generate ideal prompts for open source models via Ollama

Primary LanguagePython

DSPy x Llama3 (via Ollama)

Exploration of declarative prompt training for Llama 3

Install poetry with pipx

brew install pipx
pipx install poetry

Run the main command

poetry run python dspy_ollama_example

Theoretical overview

  • Stands for Demonstrate, search, predict (Python)

Chains

Why chains?

  • Overcomes input length and context limitations
  • Chains overcome overly complex tasks