Primer
  • Factored Cognition Primer
  • Intro
    • Factored Cognition
    • Before We Start
  • Chapters
    • Hello World
    • Question Answering
      • Q&A without context
      • Q&A about short texts
    • Debate
      • Representing debates
      • From debates to prompts
      • The debate recipe
    • Long Texts
      • Loading paper text
      • Finding relevant paragraphs
      • Answering given paragraphs
    • Amplification
      • Asking subquestions
      • Answering subquestions
      • One-step amplification
      • Recursive amplification
    • Verifiers
      • Checking answers
      • Checking reasoning steps
    • Tool Use
      • Web search
      • Interpreters
    • Deduction
      • Chain of Thought
    • Action Selection
      • One-shot action selection
      • Iterative action selection
    • Amplification Revisited
  • Appendix
    • What’s next?
  • Links
    • We’re Hiring
    • Our Slack Community
    • ICE on Github
Powered by GitBook
On this page
  • Requirements
  • Run ICE
Edit on GitHub
  1. Intro

Before We Start

How to install and run the Interaction Composition Explorer

PreviousFactored CognitionNextHello World

Last updated 2 years ago

The recipes in this primer are implemented using the (ICE). If you’d like to follow along with the implementation (strongly recommended), set it up first.

Requirements

ICE requires Python 3.9, 3.10, or 3.11. If you don't have a supported version of Python installed, we recommend using to install a supported Python version and manage multiple Python versions.

If you use Windows, you'll need to run ICE inside of .

Run ICE

As part of general good Python practice, consider first creating and activating a to avoid installing ICE 'globally'. For example:

python3.10 -m venv venv
source venv/bin/activate

Install ICE:

pip install ought-ice

The first time you run a recipe that uses recipe.agent(), you will be prompted for an that will automatically be stored in ~/.ought-ice/.env.

Interactive Composition Explorer
pyenv
WSL
virtual environment
OpenAI API key