Conversation
Migrated from ReAct multi-turn pattern to single-turn prompting after rig-core 0.34 removed the multi_turn method. Removed target language dependency and partial result handling. Added lenient deserializers for numeric fields to handle varied LLM output formats.
Improve LLM extraction reliability Add OpenAI-compatible extractor with HTTP fallback for problematic APIs. Simplify CodeInsightLLMOutput schema to essential fields and enforce strict JSON output format. Switch BoundaryAnalyzer and WorkflowResearcher from structured outputs to String. Update reqwest dependency with json feature.
This was referenced Apr 5, 2026
Closed
Closed
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.
🔥 Major Fix: LLM Deserialization Reliability
This release resolves a long-standing issue that affected production usage across different LLM providers.
The Problem
Previously, Litho relied on LLMs to strictly follow JSON Schema and return perfectly formatted structured JSON. In real-world scenarios with complex projects and various models (especially non-OpenAI providers like Ollama, DeepSeek, etc.), this caused frequent parsing errors and failures. The system was brittle and would completely fail when models deviated from the expected format.
The Solution
We've implemented a comprehensive, multi-layered approach to ensure reliable structured data extraction:
1. Lenient Deserialization with Intelligent Fallbacks
2. Provider-Specific Extractors
3. Enhanced Prompt Engineering
4. Configurable Retry & Backoff
llm.retry_attemptsImpact: Users should now see significantly fewer failures when using:
🗄️ Database Documentation Generation (New Feature)
DatabaseOverviewAnalyzeragent📄 External Knowledge Integration (New Feature)
Added powerful
local_docsintegration for importing external documentation:Supported File Types: PDF, Markdown, Text, SQL, YAML, JSON
Key Capabilities:
Example Configuration:
🤖 LLM Provider Enhancements
llm.fallover_modelconfig📊 Statistics
This is a major stability release that significantly improves reliability across all LLM providers.
Full Changelog: 1.2.6...1.5.0
Migration Notes
knowledge.local_docssection for external documentationboundary_analysissection for performance tuning__Litho_Summary_*) is deprecated but still supportedSpecial thanks to contributors who helped test and improve LLM compatibility across diverse setups!