Ollama-rs is a Rust library designed to provide a simple and efficient interface for interacting with the Ollama API, enabling developers to integrate local large language models into Rust applications. It follows the official Ollama API closely, ensuring compatibility while offering an idiomatic Rust experience with strong typing and asynchronous execution. The library supports a wide range of operations, including text generation, chat interactions, embeddings, and model management, making it suitable for both simple applications and more advanced AI workflows. It includes streaming capabilities for real-time output, allowing developers to process responses incrementally rather than waiting for full completions. The project also introduces support for tool calling and custom function integration, enabling more dynamic and agent-like behavior within applications.

Features

  • Async Rust client for Ollama API
  • Embedding generation and batch processing
  • Streaming text generation and chat responses
  • Strong typing with idiomatic Rust design
  • Model lifecycle management functions
  • Custom tool and function calling support

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Ollama-rs

Ollama-rs Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Ollama-rs!

Additional Project Details

Programming Language

Rust

Related Categories

Rust Libraries

Registered

2026-04-20