أشكوش ديجيتال

Llm educational app with tech decisions not ai-driven

تطبيق تعليمي LLM بقرارات تقنية لا يمليها الذكاء الاصطناعي

Building an LLM educational app is not magic. It requires strict architectural decisions. Artificial intelligence does not understand your users’ context. A year ago, I tried building a similar app. I got stuck in an endless loop of coding errors. I spent hours fixing AI mistakes. The deadline was approaching mercilessly. I felt deep frustration from wasting time. I stopped accepting default suggestions blindly. I sat in my office in Casablanca. I opened Claude Code to discuss technical tradeoffs. I discovered the default database was blocked in India. I immediately switched the architecture to Firebase. I rejected the complex video infrastructure. I chose YouTube links to reduce costs. We completed the initial prototype in one month. The previous version took an entire year. We reduced image sizes from three megabytes to two hundred kilobytes. AI writes code quickly. But technical decisions remain your responsibility. This is what we apply daily at Hcouch Digital projects.

Contents hide
  1. 1 Why Asking AI to Build Your Educational App Is Not Enough
    1. 1.1 The Prototype Story That Failed a Year Ago
    2. 1.2 Building the App With You vs. Building It for You
    3. 1.3 When AI Becomes an Obstacle Instead of an Accelerator
  2. 2 How to Choose the Right Language Model for an Educational LLM App
    1. 2.1 Why Sonnet Was Chosen for Generating Educational Activities
    2. 2.2 The maxTokens Dilemma: How to Calculate the Ideal Token Count for Educational Content
    3. 2.3 Model Speed Comparison in Low-Bandwidth Environments
  3. 3 Infrastructure Decisions: Why I Switched From Supabase to Firebase
    1. 3.1 How to Verify AI Infrastructure Suggestions
    2. 3.2 Steps to Set Up Firebase for an Educational React Native Project
    3. 3.3 When to Resist the Temptation of Complex Infrastructure in Early Stages
  4. 4 Structuring Educational Outputs Using JSON Schema
    1. 4.1 How to Build a Prompt That Generates Consistent Educational JSON
    2. 4.2 Overcoming the Chaos of Open Conversations With AI
    3. 4.3 Handling Multimedia Without Sending It to the Language Model
  5. 5 Machine Translation for Multilingual Educational Content
    1. 5.1 Two Translation Layers: Static and Dynamic in a React Native Project
    2. 5.2 Using the Free Google Translate API: Opportunities and Risks
    3. 5.3 How to Choose the Languages Your Educational App Will Support
  6. 6 Performance Optimization for Users on Low-Bandwidth Networks
    1. 6.1 How I Reduced Image Size From 5 MB to 200 KB
    2. 6.2 Loading Only 10 Activities at a Time: Why This Number
    3. 6.3 Separating AI Calls From Multimedia
  7. 7 Beyond the Prototype: Lessons From Building With AI
    1. 7.1 How to Produce a Promo Video for Your App Using Claude and ffmpeg
    2. 7.2 Balancing Speed and Quality: One Month vs. One Full Year
    3. 7.3 When to Decide Your Prototype Is Ready to Share
  8. 8 What Claude Documentation Does Not Tell You About Educational App Engineering
    1. 8.1 Frequently Asked Questions
      1. 8.1.1 What is an educational LLM app and how does it work?
      2. 8.1.2 What is the cost of running an AI model inside an educational LLM app?
      3. 8.1.3 Why is Firebase preferred over Supabase for developing an educational LLM app?
      4. 8.1.4 How can you improve educational app performance on slow internet networks?
      5. 8.1.5 Can you fully rely on AI suggestions when programming an educational app?
  9. 9 Conclusion
    1. 9.1 Discover more from أشكوش ديجيتال

Why Asking AI to Build Your Educational App Is Not Enough

Developer building an educational app using artificial intelligence

The Prototype Story That Failed a Year Ago

I started my previous project with great enthusiasm. I relied entirely on auto-generation tools. The tools were technically immature. I faced frequent context errors. The project stopped before reaching a prototype. I felt extreme time pressure. The tools lacked the required stability. I wasted weeks fixing coding loops. This failure taught me harsh lessons.

Building the App With You vs. Building It for You

A coding assistant only speeds up writing lines. An autonomous agent lacks holistic vision. I used Claude Code as a critical assistant. We discussed technical tradeoffs in great depth. This approach ensures the final product’s quality. You are the engineer. The assistant is the executor.

When AI Becomes an Obstacle Instead of an Accelerator

AI suggests complex solutions by default. These may not fit your geographic context. I discovered Supabase was blocked in target regions. I immediately intervened to change the infrastructure. Human review saves projects from failure. Never accept the first suggestion.

This technical aspect becomes clearer when choosing the right language model for your app.

How to Choose the Right Language Model for an Educational LLM App

Comparison of large language models for generating educational content

Why Sonnet Was Chosen for Generating Educational Activities

The app needs to generate non-generic educational content. The Opus model is too expensive for free projects. The Haiku model lacks the required pedagogical depth. I chose Sonnet for the perfect balance. It offers high quality at reasonable cost. Educational content demands high pedagogical accuracy.

The maxTokens Dilemma: How to Calculate the Ideal Token Count for Educational Content

An educational activity ranges between 1,500 and 2,000 words. This equates to roughly 2,500 tokens. I set the maxTokens value around this number. This controls operational costs. It also ensures sufficient, structured content generation. Never leave this field empty.

Model Speed Comparison in Low-Bandwidth Environments

The app is designed for teachers in remote areas. Slow networks cause connectivity issues. I excluded Haiku despite its theoretical speed. Sonnet proved more reliable in responses. You can read more about technical design decisions on external resources.

Choosing the model leads us directly to data hosting and database decisions.

Infrastructure Decisions: Why I Switched From Supabase to Firebase

Firebase dashboard for setting up the educational app database

How to Verify AI Infrastructure Suggestions

AI suggested Supabase as the default choice. It seemed ideal from a theoretical standpoint. But verification revealed geographic limitations. The service was blocked in India. I ignored the suggestion and searched for a reliable alternative. Geographic context changes every equation.

Steps to Set Up Firebase for an Educational React Native Project

I created a new project in the Firebase Console. I enabled email and password authentication. I created a Firestore database. I enabled cloud storage. I added a web app and copied the config values. These steps ensure teacher data privacy.

When to Resist the Temptation of Complex Infrastructure in Early Stages

AI suggested complex video infrastructure. I do not need that in the validation phase. I relied on simple YouTube links. This reduces complexity and lowers costs. We follow the same approach in website design strategies to avoid overengineering.

After stabilizing the infrastructure, we move to structuring the data the model generates.

Structuring Educational Outputs Using JSON Schema

JSON structure for organizing educational data in the application

How to Build a Prompt That Generates Consistent Educational JSON

I designed a strict prompt for activity generation. It imposes specific structural constraints. It requires 3 to 6 activity steps. It also requires 4 to 5 facilitation steps. This ensures direct data consumption without additional parsing.

Overcoming the Chaos of Open Conversations With AI

I initially tried interactive conversation mode. It caused significant user friction. Outputs deviated from the required structure. I switched to the single-input model. Users briefly describe their idea and receive a complete plan.

Handling Multimedia Without Sending It to the Language Model

Users upload multiple activity photos. We do not send these images to Claude. We upload them directly to Firebase for storage. AI uses only metadata. This links images to activity steps efficiently. Always review educational content. AI can sometimes hallucinate. Pedagogical responsibility remains with the teacher.

Structuring content paves the way for the next challenge: multilingual support.

Machine Translation for Multilingual Educational Content

Educational app interface supporting multiple languages through machine translation

Two Translation Layers: Static and Dynamic in a React Native Project

The project divides into two different translation layers. The static layer handles interface messages. We keep these in the src/i18n folder. The dynamic layer handles activity content. We process it through external APIs. This separation greatly simplifies maintenance.

Using the Free Google Translate API: Opportunities and Risks

We used Google’s public translation endpoint. This is the same interface the browser uses. It requires no API key and is free. But request rates are not guaranteed. We will switch to Cloud Translation API in production. Free solutions only suit the validation phase.

How to Choose the Languages Your Educational App Will Support

We targeted a diverse linguistic community audience. We chose five global languages and five Indian languages. These languages depend on training data availability. They ensure acceptable machine translation quality. This saves enormous human effort initially.

Language support expands the user base, which calls for performance optimization for weak networks.

Performance Optimization for Users on Low-Bandwidth Networks

Chart showing image size reduction for improving application performance

How I Reduced Image Size From 5 MB to 200 KB

Large images consume users’ data quickly. I used the expo-image-manipulator library for local processing. We resize images to 1200 pixels. Then we re-encode them as JPEG. The size dropped from 5 MB to 200 KB.

Loading Only 10 Activities at a Time: Why This Number

Loading all data slows the app significantly. We set loading to only 10 activities. More appear when users scroll down. This improves initial response speed. It also noticeably reduces data consumption.

Separating AI Calls From Multimedia

We kept Claude calls entirely text-based. We never send images to the language model. This keeps requests light and fast. It ensures immediate responses even on slow networks. It also enhances user experience in remote areas.

Technical performance optimization opens the door to broader lessons from the build experience.

Beyond the Prototype: Lessons From Building With AI

Developer reviewing educational app code after completing the prototype

How to Produce a Promo Video for Your App Using Claude and ffmpeg

I needed a promo video before a demo meeting. I tried AI video generation tools. They consumed many tokens with poor results. I used Claude to identify key segments. Then I used the ffmpeg command line tool for cutting and conversion. Simple tools sometimes outperform complex ones.

Balancing Speed and Quality: One Month vs. One Full Year

The previous version took an entire year. Frequent stops caused major frustration. We completed the current prototype in one month. Modern tools helped speed up coding. But human guidance remains the decisive factor.

When to Decide Your Prototype Is Ready to Share

Do not wait to build a complete, finished product. Focus on core features to validate the idea. Show the prototype to a small group of teachers. Collect feedback and adjust course quickly. This saves months of wasted work.

These practical lessons lead us to a professional conclusion I want to share.

What Claude Documentation Does Not Tell You About Educational App Engineering

I read Claude Code documentation repeatedly. The documentation focuses on writing code quickly. But it ignores complete system engineering. I faced this gap in an educational project. I asked AI to suggest a database. It immediately suggested Supabase without thinking.

I stopped and researched geographic service availability. I discovered access was blocked in target regions. This discovery saved the project from potential failure. Documentation does not tell you to verify context. You must always search for hidden limitations.

AI programs with very high efficiency. But it does not understand user geographic constraints. You must remain the project’s architect. Use AI as a code writer only. Make the critical technical decisions yourself. This is the difference between a successful and a failed product.

Frequently Asked Questions

What is an educational LLM app and how does it work?

It is an app that uses large language models. It facilitates creating and sharing educational activities. It relies on simple text input from teachers. It generates structured lesson plans in JSON format. This reduces the need for long form-filling.

What is the cost of running an AI model inside an educational LLM app?

Cost depends on the model and output length. We chose Sonnet for an optimal balance. It offers high quality with reasonable token costs. We set the maximum to 2,500 tokens. This controls costs and ensures sufficient content.

Why is Firebase preferred over Supabase for developing an educational LLM app?

Firebase is reliably available in target regions. Platforms like Supabase face geographic limitations. They may be blocked in countries like India. You must verify regional availability. Do not rely only on default suggestions.

How can you improve educational app performance on slow internet networks?

Compress images locally before uploading. Reduce their size to approximately 200 KB. Load only 10 activities at a time. Keep AI calls text-only. Use YouTube links instead of complex video infrastructure.

Can you fully rely on AI suggestions when programming an educational app?

Full reliance is never recommended. AI may suggest geographically unsuitable solutions. It may overengineer software early on. Always critically evaluate each suggestion. Make technical decisions that balance cost and quality.

Conclusion

Building apps with AI requires technical vigilance. Do not delegate architectural decisions to algorithms. Review every suggestion with an expert critical eye. Try compressing your project images locally before uploading today. What infrastructure choice do you regret from your previous project?


Discover more from أشكوش ديجيتال

Subscribe to get the latest posts sent to your email.

Leave a Comment

Your email address will not be published. Required fields are marked *