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.2.1.tar.gz (9.1 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.2.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for accuralai_ollama-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1175989d3c420df63019d41867405926159a0ac2d8ab49e96d6098420e8bbb87
MD5 44960ab97f53a61d92f1000a1360b349
BLAKE2b-256 290becf63c9c8e494923f160f472821b10aef1822cf7b9812e7dc2f5bc6c4cd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for accuralai_ollama-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1a53cac1ad625c74d65e53e007e892e77209d8abd8f7419d18f02374b518281
MD5 e2415150597951fde11bd06401275285
BLAKE2b-256 bdbd342b78b6f1b67701e748bcc5c30c25ebe00232c6ac1d71bc61b4947eff4f

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