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

Uploaded Python 3

File details

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

File metadata

  • Download URL: accuralai_ollama-0.2.0.tar.gz
  • Upload date:
  • Size: 8.6 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.0.tar.gz
Algorithm Hash digest
SHA256 aa3f69525e15a5f31698f26fbfdfa15ed63e5f6fb136c7dc046ea1f1c895776e
MD5 b17f655c3197a9ea9adf8902ad21c1fc
BLAKE2b-256 13920ae493db50e6988b1d5fd9e607bb5211020f24ca58849bbc744973ad1145

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for accuralai_ollama-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5593cbc4a908a75f045490278e217681ab611040ce129aea1a984d1ac46138ab
MD5 0b882ceac912a7f285185eb627983516
BLAKE2b-256 878fd787667758e14aff1c1b494e3dc6334a4c47026e0abfb0579ed2f693642f

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