ollama

package
v0.2.64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: MPL-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ollama is the v1 ai://embed backend: a local, keyless Ollama instance (https://ollama.com) speaking its /api/embed endpoint.

It is the developer/offline default — `nomic-embed-text` (768-dim) over http://localhost:11434 needs no API key, so embedding works out of the box in `txco dev` and for offline catalog work. The OpenAI-direct backend (which needs OPENAI_KEY) is a follow-up for deployments where a local Ollama isn't reachable.

The backend self-registers in init() under the name "ollama"; the chassis activates it with a blank import.

**Task prefixes.** nomic-embed-text expects `search_document:` / `search_query:` prefixes for best retrieval quality. That is a per-call, author-visible decision: the txcl author prepends the prefix in the WITH value (e.g. `WITH text = &concat("search_query: ", @web.req.body)`). The backend stays dumb and embeds exactly what it is given.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL