Skip to content

Pau/feat/update and fix examples#53

Merged
Paulescu merged 25 commits intomainfrom
pau/feat/update-and-fix-examples
Feb 6, 2026
Merged

Pau/feat/update and fix examples#53
Paulescu merged 25 commits intomainfrom
pau/feat/update-and-fix-examples

Conversation

@Paulescu
Copy link
Collaborator

@Paulescu Paulescu commented Feb 6, 2026

This PR comprehensively updates and improves the examples documentation across multiple platforms and categories.

Key Changes

New Examples

  • Add Android examples from Leap SDK Examples repo
  • Add laptop examples from cookbook projects
  • Add web examples for WebGPU demos (real-time video captioning)
  • Add Examples sections to model category pages

Android Examples

  • Update Android examples to align with LeapSDK 0.9.7
  • Add cards for all Android examples to index page
  • Fix broken image links in Android examples
  • Remove Leap Chat references (removed from SDK)

Laptop Examples

  • Update flight search assistant with quickstart and demo
  • Update audio transcription CLI example
  • Update car-maker-finetuning example
  • Update audio-to-text-in-real-time example
  • Update English↔Korean translation example
  • Update invoice-extractor tool example

Web Examples

  • Add WebGPU demo documentation
  • Embed demo video in audio car cockpit example
  • Link model references to model card pages

Documentation Improvements

  • Standardize Discord call-to-action with Card components
  • Apply purple hover border styling to all Card components
  • Fix GitHub icon visibility in light mode
  • Add new cookbook examples to index and navigation

Cleanup

  • Remove iOS Examples section (deprecated)
  • Remove LeapChat and outdated references

Test Plan

  • Verify all links work correctly
  • Check examples render properly in dev mode
  • Confirm Android examples align with latest SDK version
  • Validate demo videos load correctly

Paulescu and others added 25 commits February 5, 2026 08:05
Updates all 5 Android example documentation files based on changes from
LeapSDK-Examples PR #36:

Major updates (recipe-generator-constrained-output.mdx):
- Add automatic model downloading via LeapDownloader
- Add @Generatable annotation feature documentation
- Update setup instructions to reflect automatic model caching
- Add LeapSDK 0.9.4+ and internet connectivity requirements
- Update code examples with LeapDownloader.downloadAndLoadModel()
- Replace Gson with kotlinx.serialization

Minor updates (all files):
- Update LeapSDK dependency from 1.0.0 to 0.9.7
- Update Koog framework docs link to https://docs.koog.ai
- Verify all model paths and installation instructions are accurate

All files maintain their comprehensive tutorial format while incorporating
the latest SDK capabilities and best practices.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
The GitHub icon in Card components at the top of example pages was not
visible in light mode due to missing background-color styling for
mask-image based icons.

Changes:
- Add specific CSS rules to set background-color for all Card icons in light mode
- Target both card-group cards and standalone Cards
- Apply to both style.css and styles.js for dev/prod consistency
- Use purple accent color (#864bc4) to match existing design system

The fix ensures GitHub icons and other mask-image based icons are visible
in light mode across all example documentation pages.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Removed the leap-chat entry from the Android Examples navigation
since the corresponding MDX file was removed.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Removed the iOS Examples navigation group and deleted the
deploy-models-on-ios folder containing the slogan-generator-app.mdx file.

Changes:
- Removed "iOS Examples" group from navigation in docs.json
- Deleted examples/deploy-models-on-ios/ folder

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Removed the Slogan Generator App card that linked to the deleted
iOS example from the examples library index page.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Removed the informational Note box about the Liquid AI Cookbook
from the examples library index page.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Added 5 Android example cards to the examples library index:
- Product Slogan Generator (single-turn generation with Android Views)
- Web Content Summarizer (share intent handling with local LLM)
- Structured Recipe Generator (constrained generation with JSON schema)
- Vision Language Model Demo (image understanding with VLMs)
- AI Agents with Koog (agent framework with tool invocation)

The index now displays all 9 examples:
- 3 Laptop examples
- 5 Android examples
- 1 Model customization example

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Updated the Android Views architecture section to remove the specific
reference to the LeapChat example, which was removed from the documentation.

Changed "Unlike the LeapChat example which uses Jetpack Compose" to
"Unlike examples that use Jetpack Compose" for a more general comparison.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Replaced all Discord links and badges in example files with a consistent
Card component for better visual consistency and user experience.

Updated 8 example files:
- 5 Android examples (slogan-generator, web-content-summarizer,
  recipe-generator, vision-language-model, leap-koog-agent)
- 3 Laptop examples (invoice-extractor, audio-to-text, korean-translation)

Changes:
- Removed markdown links with bullet lists
- Removed Discord badge images
- Added consistent CardGroup with Discord Card component
- Unified Discord URL to https://discord.gg/DFU3WQeaYD

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Updated image URLs to working links:
- vision-language-model-example.mdx: screenshot.png → vlm_example.png
- web-content-summarizer.mdx: demo.gif → shareai_screenshot.gif

Both images verified accessible (HTTP 200) from LeapSDK-Examples repo.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Extended the purple hover border style to apply to both card-group cards
and standalone cards (like "View Source Code" at the top of examples).

Changes:
- Updated CSS selectors to target all cards, not just those in card-groups
- Applied to both style.css and styles.js for consistency
- Ensures consistent purple (#864bc4) border on hover across all Card components

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Creates two new web example pages demonstrating browser-based AI models:
- vl-webgpu-demo: Real-time video captioning with LFM2.5-VL-1.6B
- audio-webgpu-demo: Audio processing with LFM2.5-Audio-1.5B (ASR/TTS/Interleaved modes)

Both examples showcase WebGPU acceleration for local inference with complete privacy, zero cost, and offline capability. Added "Web Examples" section to navigation with globe icon.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add Examples sections to text, audio, and vision model category pages to help users discover practical implementations. Each section includes 2-4 curated examples showcasing different platforms (Android, Desktop, Web) and use cases.

- Text models: 5 examples (slogan generation, summarization, structured output, agents, translation)
- Audio models: 2 examples (real-time transcription, browser demo)
- Vision models: 4 examples (image understanding, invoice extraction, video captioning, fine-tuning)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Convert 4 cookbook READMEs to Mintlify format: flight search assistant, audio car cockpit, meeting summarization, and browser control with GRPO.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add cards and navigation entries for flight search assistant, audio car cockpit, meeting summarization, and browser control examples.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Replace markdown image syntax with HTML5 video element for proper video playback. Uses permanent GitHub user-attachments URL.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Replace Key Features and Getting Started sections with streamlined Quickstart section matching the original GitHub example. Add demo GIF and link model reference to docs.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@Paulescu Paulescu requested a review from mlabonne as a code owner February 6, 2026 01:29
@Paulescu Paulescu merged commit 44e7fd6 into main Feb 6, 2026
5 checks passed
@Paulescu Paulescu deleted the pau/feat/update-and-fix-examples branch February 6, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant