# pepperoni21/ollama-rs

A simple and easy-to-use library for interacting with the Ollama API.

Repository: https://github.com/pepperoni21/ollama-rs
Canonical: https://ross.abutalabs.com/products/ollama-rs
Language: Rust
License: MIT
License Family: permissive
Last push: 2026-09-02T15:12:47+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 82, longevity 73
- inputs: {"age_days": 1035, "days_push": 0, "days_rel": 40, "gap_med": 34.5, "n_releases_24m": 13}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1059, forks 166 (observed 2026-09-03T02:15:16.783521+00:00)

## What it is
A Rust client library for interacting with the Ollama API, supporting completion generation, streaming, chat, model management, embeddings, and function/tool calling. It is published on crates.io with nearly 480k downloads and an MIT license.

## Use cases
- call local ollama models from rust
- generate llm completions with streaming in rust
- build a chatbot on top of ollama
- generate embeddings for rag in rust
- manage ollama models programmatically
- implement tool/function calling with local llms

## When to choose
- you're writing Rust and want a simple typed client for Ollama
- you need streaming, chat, embeddings, or tool calling against a local Ollama server
- you want a lightweight alternative to raw HTTP calls to the Ollama API

## When to avoid
- you need to talk to OpenAI, Anthropic, or other non-Ollama LLM APIs
- you're not using Rust
- you need a full inference engine rather than a client for an existing Ollama server

## Facets
- artifact type: library
- maturity: active
- function: http-client, llm-inference, rag, chatbot, sdk
- domain: large-language-models, artificial-intelligence, developer-tools, apis
- platform: rust, cross-platform
- tags: ollama, llm-client, async, embeddings, function-calling, streaming

## Member repositories
- pepperoni21/ollama-rs (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:16.783521+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:57:21.285165+00:00, confidence not recorded.
  - readme: https://github.com/pepperoni21/ollama-rs (fetched 2026-09-03T02:15:16.783521+00:00, sha 5c8e0b0ad23b)
  - registry_crates: https://crates.io/api/v1/crates/ollama-rs (fetched 2026-08-29T12:59:01.355262+00:00, sha 408a2960b2c1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
