Skip to main content

Ollama backend adapter for the AccuralAI LLM orchestration pipeline.

Project description

accuralai-ollama

accuralai-ollama provides an ollama backend implementation for accuralai-core, enabling local model inference through the Ollama service. Once installed, you can configure the core orchestrator to route requests to Ollama by setting the backend plugin to ollama.

Installation

pip install accuralai-core accuralai-ollama

Configuration

Add an Ollama backend block to your AccuralAI configuration (e.g., ~/.accuralai/core.toml):

[backends.ollama]
plugin = "ollama"
[backends.ollama.options]
model = "gemma3:4b"
host = "http://127.0.0.1:11434"
timeout_s = 60
keep_alive = "5m"

Then run:

accuralai-core generate --prompt "Explain quantum entanglement" --route ollama

The backend will call Ollama’s /api/generate endpoint, return the completion, and populate usage metadata based on the server’s response.

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

accuralai_ollama-0.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

accuralai_ollama-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file accuralai_ollama-0.1.0.tar.gz.

File metadata

  • Download URL: accuralai_ollama-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for accuralai_ollama-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce4d8764ef8cb4176c45d9ebaa42b6f3f23263abc6ae25075269c7a704c68de8
MD5 f564b9ba9ae29d58f68825c31e374dc3
BLAKE2b-256 3ac94ed02d50946900c027c81d87f21bc2b058e8d3a4ffd860654c9071739e2f

See more details on using hashes here.

File details

Details for the file accuralai_ollama-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for accuralai_ollama-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da7807641c2f9d8d965cb91de9069ab354a6b6361ec776a72a27908c35239323
MD5 51770f33f7b948b351871249e937e13f
BLAKE2b-256 d660ddf3c77069607668d733d18ceafc9f09e151189902886b6958c7babf4bec

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