Home / Companies / JetBrains / Blog / Post Details
Content Deep Dive

Rust AI: Building LLM Applications With Rig

Blog post from JetBrains

Post Details
Company
Date Published
Author
Irina Mihajlovic
Word Count
1,704
Company Posts That Month
34
Language
American English
Hacker News Points
-
Post removed?
No
Summary

A Rust Foundation livestream introduced Rig, an open-source Rust library that provides a unified interface for large language model providers such as OpenAI, Anthropic, and Gemini, helping developers build applications without depending on provider-specific APIs. Rig structures applications around provider clients, models, agents, preambles, and Rust-based tools that can perform tasks such as file operations, database queries, calculations, or shell commands, with support for asynchronous requests, streaming, agent delegation, and stateful tool context. The session demonstrated these capabilities through Rat Code, a terminal coding agent built with Rig and Ratatui that registers file and shell tools and streams model responses in its interface. Rig also supports retrieval-augmented generation through vector-store integrations and local inference through Ollama, llama.cpp, and Candle, including options to embed model weights or run supported models in WebAssembly. To test changing provider integrations despite nondeterministic model outputs, Rig records live HTTP interactions as cassettes that can be replayed in CI, while production users may separately schedule live-model tests to assess output quality.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
LLM 15 747 162 79 -85%
AI Agents 6 931 231 103 -84%
RAG 6 101 30 23 -91%
Real-time 3 649 155 80 -85%
Local AI 1 15 4 3 -94%
Vector Search 1 265 57 33 -89%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.