Add CLAUDE.md with architecture overview and dev commands#177
Open
maraal wants to merge 8 commits intohttps-deeplearning-ai:mainfrom
Open
Add CLAUDE.md with architecture overview and dev commands#177maraal wants to merge 8 commits intohttps-deeplearning-ai:mainfrom
maraal wants to merge 8 commits intohttps-deeplearning-ai:mainfrom
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sources returned by the search tool now include the lesson URL (looked
up from the course catalog at query time). The API returns structured
{label, url} objects instead of plain strings, and the frontend renders
them as pill-shaped chips — blue and clickable when a URL is available,
gray otherwise.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Reveals the previously hidden header as a slim top bar with the app title and a sun/moon toggle button. Theme preference is persisted in localStorage and falls back to the OS prefers-color-scheme setting. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds a sidebar dropdown to switch between Claude (Sonnet) and Gemini (2.5 Flash) at query time. Model choice persists in localStorage and is sent with each request. GeminiGenerator mirrors AIGenerator's interface with two-turn tool-call flow and Anthropic→Gemini tool definition conversion. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- search_tools: track seen (label, url) pairs so each lesson appears once in source chips regardless of how many chunks matched - rag_system: fetch course titles from vector store at query time and include them in the prompt, so the model can answer catalog questions without a tool call - config: raise MAX_RESULTS 5→10 so outline queries retrieve enough chunks to cover more lessons Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Swaps get_existing_course_titles() for get_all_courses_metadata() so the model sees lesson counts and instructors for each course in every prompt. Enables answering questions like "what is the longest course?" or "which courses are taught by X?" without a search. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…pages Adds a new get_course_page_info tool that fetches and strips the course's official DeepLearning.AI page so the model can read actual duration, difficulty, and description instead of guessing from lesson count. Uses requests (already a transitive dep) and stdlib re/html for tag stripping. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds a styled '+ NEW CHAT' button between the model selector and courses
section. Clicking it calls DELETE /api/session/{id} to free server-side
history, then resets the chat window and mints a fresh session on the next
query — no page reload needed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CLAUDE.mdto guide Claude Code in this repositoryuv🤖 Generated with Claude Code