English 中文说明

Demo Case: LiteRTDemo

Chapter 06 / Reference Implementation

Official Reference Implementation

winyunq/LiteRTDemo

The project you are currently viewing is the standard demo for LiteRT-LM.

Quick Experience / Running this project

To see immediate results within this project, follow this flow (the physical realization of the Quick Start):

1

Place Model in Correct Directory

Download gemma-4-E2B-it-litert-lm and place it at:
LiteRTDemo/Content/Models/gemma-4-E2B-it-litert-lm

2

Open Demo Map

Locate and open Demo.umap in the Content Browser.

3

Click Run (PIE)

Press 'Alt + P'. You will see the tavern UI, and NPCs are ready for conversation powered by local compute.

Case 01 / Tavern Dialogue System

This project showcases AI integration via these core assets:

WinyunqDialogueWidget

Located in Source/LiteRTDemo/. Shows how to bind to OnTextChunkReceived for smooth typewriter effects.

BP_AIBrain_Component

A child of ULiteRtLmComponent, pre-configured with personality prompts and session cleanup logic.