FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

Β© 2026 FlareStart. All rights reserved.

Back to articles
πŸŽ“ Science Teacher Chatbot β€” Full Explanation (Everything)
How-ToWeb Development

πŸŽ“ Science Teacher Chatbot β€” Full Explanation (Everything)

via Dev.toAbhishek Gupta1mo ago

🌱 0️⃣ What We Are Building We are building a Science Teacher AI chatbot backend . This AI: answers science questions explains like teacher remembers chat ignores non-science Example: Student: What is gravity? AI: Gravity is a force… Student: explain again AI: As I explained earlier… πŸ‘‰ AI remembers context. 🧠 1️⃣ How System Works Flow: Student β†’ API β†’ Filter β†’ LangChain β†’ OpenAI β†’ Answer ↑ Memory Steps: Student sends question Express API receives Science filter checks LangChain adds memory OpenAI generates answer API returns response 🧰 2️⃣ Technologies Node.js β†’ backend Express β†’ API LangChain β†’ LLM framework OpenAI β†’ AI brain BufferMemory β†’ chat memory dotenv β†’ API key pnpm β†’ package manager πŸ“¦ 3️⃣ Create Project mkdir science-teacher-bot cd science-teacher-bot pnpm init πŸ“¦ 4️⃣ Install Dependencies pnpm add express cors dotenv langchain @langchain/openai nodemon πŸ“ 5️⃣ Folder Structure science-teacher-bot/ β”‚ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ memory.mjs β”‚ β”œβ”€β”€ llm.mjs β”‚ β”œβ”€β”€ filter.mjs β”‚ β”œβ”€β”€ route.mjs β”‚ └── se

Continue reading on Dev.to

Opens in a new tab

Read Full Article
23 views

Related Articles

References: The Alias You Didn’t Know You Needed
How-To

References: The Alias You Didn’t Know You Needed

Medium Programming β€’ 15h ago

Pointers: The Concept Everyone Says Is Hard
How-To

Pointers: The Concept Everyone Says Is Hard

Medium Programming β€’ 15h ago

Learning a Recurrent Visual Representation for Image Caption Generation
How-To

Learning a Recurrent Visual Representation for Image Caption Generation

Dev.to β€’ 17h ago

How-To

# 5 JSON Mistakes Developers Make (And How to Fix Them Fast)

Medium Programming β€’ 18h ago

10 subtle go mistakes that only show up in production
How-To

10 subtle go mistakes that only show up in production

Medium Programming β€’ 19h ago

Discover More Articles