Skip to content

replayio/ai-playground

Repository files navigation

  1. How to?
  2. Start coding for the day
  3. Setup
  4. Notes
    1. TODO Ideas
    2. High-level Problems

How to?

  1. Make sure you have setup the project and rye synced.
  2. Modify .prompt.md to provide instructions to the LLM.
    • Example prompt:
      Rename `AskUserTool` in `ask_user_tool.py` to `AskUserTool2`.
  3. Run main_coder.py or main_manager.py to fulfill that prompt.

Start coding for the day

  • rye sync
  • ./setup.sh for system dependencies (if necessary)

Setup

  • Install rye, make sure its activated and sync'ed and put in your startup script.
  • Create a new .env.secret file and add your secrets, especially:
    • ANTHROPIC_API_KEY (for Claude)
    • OPENAI_API_KEY (optional, for GPT-4)
  • Run ./setup.sh to get started.

Notes

TODO Ideas

  • Try some local/offline models:
    • e.g. ollama run codellama:70b
  • NOTE: RAG (Retrieval-Augmented Generation) or any proper local/offline models will need a GPU and/or a powerful setup. We'll have to investigate that.

High-level Problems

  • How can we make sure that the agent can learn and stops repeating rather specific types of mistakes?
    • For example, when adding a tool, it always wants to return things, and convert exceptions into return values. Terrible pattern.
    • Usually, the SYSTEM_PROMPT should help with this, but sometimes the mistakes are too context-sensitive.

About

AI Playground to test goof around with

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published