MCPcopy Index your code
hub / github.com/Nutlope/llamatutor

github.com/Nutlope/llamatutor @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
35 symbols 73 edges 19 files 0 documented · 0% 8 cross-repo links updated 4mo ago★ 1,9946 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Llama Tutor

Llama Tutor

An open source AI personal tutor. Powered by Llama 3 70B & Together.ai

Tech stack

  • Llama 3.1 70B from Meta for the LLM
  • Together AI for LLM inference
  • Next.js app router with Tailwind
  • Exa.js for the search API
  • Helicone for observability
  • Plausible for website analytics

Cloning & running

  1. Fork or clone the repo
  2. Create an account at Together AI for the LLM
  3. Create an account at Exa
  4. Create an account at Helicone for observability
  5. Create a .env (use the .example.env for reference) and replace the API keys
  6. Run npm install and npm run dev to install dependencies and run locally

Future Tasks

  • [ ] Add a share & copy buttons that folks can click on after convos are generated
  • [ ] Add potential follow up questions + new chat at the end of chat page
  • [ ] Split the page into two pages and add back the footer
  • [ ] Move all my icons into their own typescript file (transform.tools)
  • [ ] Add a more detailed landing page with a nice section with the GitHub link
  • [ ] Add nice hamburger menu on mobile
  • [ ] Try out the generative UI stuff from Vercel
  • [ ] Add a nicer dropdown overall

Extension points exported contracts — how you extend this code

ChatGPTMessage (Interface)
(no doc)
utils/TogetherAIStream.ts
TogetherAIStreamPayload (Interface)
(no doc)
utils/TogetherAIStream.ts

Core symbols most depended-on inside this repo

onSubmit
called by 2
components/FinalInputArea.tsx
handleInitialChat
called by 2
app/page.tsx
handleChat
called by 2
app/page.tsx
scrollToBottom
called by 1
components/Chat.tsx
handleClickSuggestion
called by 1
components/Hero.tsx
getSystemPrompt
called by 1
utils/utils.ts
TogetherAIStream
called by 1
utils/TogetherAIStream.ts
handleSourcesAndChat
called by 1
app/page.tsx

Shape

Function 33
Interface 2

Languages

TypeScript100%

Modules by API surface

utils/TogetherAIStream.ts6 symbols
app/page.tsx5 symbols
utils/utils.ts3 symbols
components/FinalInputArea.tsx3 symbols
components/Chat.tsx3 symbols
components/Sources.tsx2 symbols
components/InitialInputArea.tsx2 symbols
components/Hero.tsx2 symbols
app/api/getChat/route.ts2 symbols
proxy.ts1 symbols
components/logo.tsx1 symbols
components/TypeAnimation.tsx1 symbols

Dependencies from manifests, versioned

@headlessui/react2.1.2 · 1×
@mozilla/readability0.5.0 · 1×
@types/jsdom21.1.6 · 1×
@types/node20 · 1×
@types/react18 · 1×
@types/react-dom18 · 1×
@upstash/ratelimit2.0.7 · 1×
@upstash/redis1.35.7 · 1×
eslint8 · 1×
eslint-config-next16.0.7 · 1×
eventsource-parser1.1.2 · 1×

For agents

$ claude mcp add llamatutor \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact