Skip to content

Move ollama and numpy behind a [semantic] extra #75

Description

@aborruso

Today ollama>=0.6.1 and numpy>=2.4.2 are hard dependencies in pyproject.toml. A user who only ever calls get or search installs the Ollama client without knowing it, and the install docs never mention it.

Only search --semantic, embed and guide need them.

Proposed: [semantic] = ["ollama", "numpy"], with a clear ImportError message when semantic_search/build_embeddings are called without it.

Not a pure packaging change: it breaks library users who from opensdmx import semantic_search today, so it needs a deprecation path and a release note.

Recommended in three separate places and never executed — docs/evaluation-v0.10.3.md:109, docs/evaluation-v0.14.0.md:251 (both now untracked, kept locally), and the 2026-07-16 self-contained plan.

Note the real prerequisite is out of band anyway: the Ollama server and a ~1 GB model pull, neither of which pip can express.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions