AGENTIC AI / A SYSTEM IN PRACTICE

Lena.Intelligence, in context.

A parenting companion built with retrieval, memory, and carefully bounded automation.PRODUCT OWNERSHIP · ARCHITECTURE · INTEGRATION

PERSONAL CONTEXT
Understand the family.
InterestsChildren’s agesLocation
MEMORYThe conversation carries forward.Recent history + summarized context
Understand. Plan. Connect.
Lena, Loopelo’s illustrated AI companionLENA
Relevant knowledgeSemantic retrieval + product records
A GROUNDED NEXT STEP
Original Loopelo community illustration
Suggestions that fit the family.Context → Retrieval → Recommendation
Structured output. Record checks.
Gemini · RAG · pgvector · Django · Celery / RedisExplore the architecture
01 / RETRIEVAL-AUGMENTED GENERATION

Find the signal.
Ground the answer.

Semantic retrieval connects the question to relevant knowledge. Product records keep recommendations tied to available content.

START WITH MEANING
Ideas for playing outside together
KNOWLEDGE INDEXPublished articles
Semantic embeddings
ILLUSTRATIVE EMBEDDING PROJECTION
pgvector Cosine similarity
RELEVANT CONTEXT
01Explore through play
02Small outdoor adventures
03Play that fits their age
Give the model relevant evidence.
THE CHALLENGEUseful information is scattered.
THE DESIGN DECISIONRetrieve relevant context before generating the answer.
02 / MODEL ORCHESTRATION

Lightweight models.
Thoughtful architecture.

Separate planning from response generation. Keep retrieval in the system. Give each model a focused job.

Let the system
do the retrieval.
Product services + vector search
PLAN WITH CONTEXT

Select an action when the task needs product data. Use a direct answer when it does not.

Bound the workOne tool round per turn
Carry useful memorySummaries + recent history
Check the outputStructured response + record checks
Flash-Lite model defaults in the source. Assignments are configurable.
A stronger model plans and a low-cost model executes: under $0.001 per turn.
Under the architecture +

A stronger model plans each turn and a low-cost model carries it out, which keeps the cost under $0.001 per turn. The source defaults to Gemini 3.5 Flash-Lite for planning and Gemini 2.5 Flash-Lite for synthesis; production assignments are configurable. A tool-based turn uses a planning stage, bounded service execution, then response generation with tools disabled. Direct answers can finish in the first stage.

03 / QUALITY + OBSERVABILITY

Make quality
part of the system.

Evaluate behavior against realistic tasks. Observe latency, token use, and fallbacks alongside user feedback.

12golden-set scenarios
in the reviewed source
C01C02C03C04C05C06C07C08C09C10C11C12
Behavior checksMode · Action · Output · Length
Model-scored rubricDoes the answer meet the case?
CONFIGURED EVALUATION GATE≥80%

Target pass rate
before a release.

OBSERVE EACH TURN
Quality & feedbackLatencyToken useFallbacks

Evaluation design from the codebase. Every recommendation is checked against current listings before it is shown.

THE TECHNOLOGY
GeminiPlanning + synthesis
pgvectorSemantic retrieval
DjangoProduct services + validation
Celery / RedisAsynchronous memory
React NativeIn-product experience
Lena
THE PRODUCT THINKING

Context. Constraints. A useful outcome.

My role connects the user need, the system design, and the way we evaluate it.

Applied research

Product and research inquiries

I welcome conversations about products, partnerships and applied research.

Send a message
I use your email to reply to this inquiry.