Add rig-simple example - Rust translation of langchain-simple using r…#2
Open
AlexMikhalev wants to merge 1 commit intomainfrom
Open
Conversation
…ig-core This example demonstrates how to use the rig-core library (https://github.com/0xPlaygrounds/rig) with Ollama to generate structured recipe data. It's a translation of the langchain-simple Python example using Rust and the rig framework. Key features: - Uses rig-core 0.23 with Ollama provider - Leverages rig's extractor pattern for structured output with JSON Schema - Integrates with Coagent server for logging LLM calls - Type-safe structured data using serde and schemars - Async/await with Tokio runtime The implementation includes: - Cargo.toml with dependencies (rig-core, serde, schemars, tokio, etc.) - Structured recipe models with JsonSchema derives - Recipe generator using rig's extractor - Coagent client for logging - Configuration management - Comprehensive README with examples and troubleshooting Related to rust-genai-simple example but using the rig framework instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ig-core
This example demonstrates how to use the rig-core library (https://github.com/0xPlaygrounds/rig) with Ollama to generate structured recipe data. It's a translation of the langchain-simple Python example using Rust and the rig framework.
Key features:
The implementation includes:
Related to rust-genai-simple example but using the rig framework instead.