Skip to main content

A plugin for Enthusiast that provides an Ollama connector.

Project description

Ollama Models

This Enthusiast plugin enables locally hosted models via Ollama for generating embeddings and LLMs.

Installation

Run the following command inside your application directory:

pip install enthusiast-model-ollama

Configuration

Register the providers in your settings_override.py:

CATALOG_LANGUAGE_MODEL_PROVIDERS = [
    'enthusiast_model_ollama.OllamaLanguageModelProvider',
]

CATALOG_EMBEDDING_PROVIDERS = [
    'enthusiast_model_ollama.OllamaEmbeddingProvider',
]

The following environment variables are optional:

OLLAMA_HOST=http://127.0.0.1:11434  # defaults to http://127.0.0.1:11434 if not set
OLLAMA_API_KEY=<your_ollama_api_key>  # only required if your Ollama instance requires authentication

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

enthusiast_model_ollama-1.3.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

enthusiast_model_ollama-1.3.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file enthusiast_model_ollama-1.3.0.tar.gz.

File metadata

  • Download URL: enthusiast_model_ollama-1.3.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.12 Linux/6.14.0-1017-azure

File hashes

Hashes for enthusiast_model_ollama-1.3.0.tar.gz
Algorithm Hash digest
SHA256 6bf4ca0d8aadbea2124d7b989899523458c2aad5066048f665c6030eca26cffa
MD5 3819b35471365b75eea9086fa2c8b6b0
BLAKE2b-256 0a226798fd06af126f5c659971886040ed50efe099670f5ad68bf97fca291dbe

See more details on using hashes here.

File details

Details for the file enthusiast_model_ollama-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for enthusiast_model_ollama-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2578f30671a92ca34868df98a2045d5f3542b97f4a98e3efcce2db542618dd3e
MD5 64dbe17987a5a771b61207380061c5a0
BLAKE2b-256 555448496b6cbce7a49b1d542b13fe29cc611f45f9ef1383752f4e1562f30b61

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