Skip to main content

An integration between the Ollama LLM framework and Haystack

Project description

ollama-haystack

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install ollama-haystack

License

ollama-haystack is distributed under the terms of the Apache-2.0 license.

Testing

To run tests first start a Docker container running Ollama and pull a model for integration testing It's recommended to use the smallest model possible for testing purposes - see https://ollama.ai/library for a list that Ollama supportd

docker run -d -p 11434:11434 --name ollama ollama/ollama:latest
docker exec ollama ollama pull <your model here>

Then run tests:

hatch run test

The default model used here is orca-mini for generation and nomic-embed-text for embeddings

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

ollama_haystack-2.4.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

ollama_haystack-2.4.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file ollama_haystack-2.4.0.tar.gz.

File metadata

  • Download URL: ollama_haystack-2.4.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for ollama_haystack-2.4.0.tar.gz
Algorithm Hash digest
SHA256 d40bf92d944afdbf3ae2cfc831b5a371adb824860423188ebf5ad18ab4dfc3ac
MD5 b7edade990fc27c6e65a8144942dd2db
BLAKE2b-256 1e64932db0a1e0ba0f06ee3a9bb0651e8dd63c3ff2690f26ea61f84c589e01b0

See more details on using hashes here.

File details

Details for the file ollama_haystack-2.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ollama_haystack-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a795bb958b8d6bbe9b6de23cade4935aaa2e306c45391be439cd0fcea4a4656f
MD5 92215685cc88315de6100d456d250af8
BLAKE2b-256 1c6711df083565efdc5e81a94832a54ba0927665293ad56a740f6f483e2251e7

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