Skip to content

number8868/cf_ai_study_tutor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Study Tutor (Cloudflare AI Assignment)

This is a simple AI-powered study tutor built using Cloudflare Workers, Workers AI, and KV storage.
Users can chat with the tutor, select subject and level, and the assistant provides learning guidance and explanations.

Features

  • Supports multiple subjects: Math, CS, Physics, Language, Exam Prep
  • Supports different learning levels
  • Chat-based web UI
  • Stores conversation history using KV
  • Runs fully on Cloudflare edge

Tech Stack

  • Cloudflare Workers
  • Workers AI (llama-3-8b-instruct)
  • Cloudflare KV
  • HTML + JavaScript (frontend)

Run Locally

1️⃣ Install & Start

npm install
npm run dev

2️⃣ Open in Browser

http://127.0.0.1:8787/

3️⃣ Deploy

npm run deploy

4️⃣ wrangler.toml Example

[ai]
binding = "AI"

[[kv_namespaces]]
binding = "CHAT_KV"
id = "YOUR_KV_ID"

Notes

Conversation memory stored using Cloudflare KV

Prompt definition documented in PROMPTS.md

max_tokens and temperature configurable in src/index.mjs

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors