Skip to main content

SIA: Self-Improving Auto-researcher — an autonomous AI scientist framework

Project description

SIA (Self-Improving Auto-researcher)

A framework for building self-improving AI agents that autonomously refine their performance on scientific tasks.

Installation

pip install sia-agent

Usage

from sia import Generation, GenerationLog, ScoreTracker

# Track generations in a self-improvement loop
log = GenerationLog()

gen = log.new_generation(config={"model": "claude-sonnet", "temperature": 0.7})
# ... run your agent ...
gen.finish(result={"accuracy": 0.82})

gen = log.new_generation(config={"model": "claude-sonnet", "temperature": 0.5})
# ... run improved agent ...
gen.finish(result={"accuracy": 0.91})

# Find the best generation
best = log.best("accuracy")
print(best.generation_id, best.result)  # 1 {'accuracy': 0.91}

# Save and reload logs
log.save("run_log.json")
log = GenerationLog.load("run_log.json")

# Track scores across generations
tracker = ScoreTracker()
tracker.record("accuracy", 0.82)
tracker.record("accuracy", 0.91)

summary = tracker.summarise("accuracy")
print(summary.improvement)   # 0.09
print(summary.is_improving)  # True

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sia_agent-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sia_agent-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file sia_agent-0.1.1.tar.gz.

File metadata

  • Download URL: sia_agent-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for sia_agent-0.1.1.tar.gz
Algorithm Hash digest
SHA256 98a8ba231a2c481172a3e82133b37b4415b8f6715d87eece472c2c1f5e986b87
MD5 ca12a8c16737d83784db07b033044f05
BLAKE2b-256 20f222bd6f3f372e83aafca8c4622cc3897f05492de0aa57130f566508c90603

See more details on using hashes here.

File details

Details for the file sia_agent-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sia_agent-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for sia_agent-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2e597ce1c743b0e484216d7c5823b3e524cd08bc62860d45aa7f477f38ded3e
MD5 9f950a1e1873795a77ce1d84caf312c7
BLAKE2b-256 491d4691bafc0d8d736444d059c19a429531de5e80c8087b92a6854f0cd44bf4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page