feat(ai): add Glossary Copilot, a glossary-grounded Solana concept assistant#30
Open
paollacq wants to merge 3 commits intosolanabr:mainfrom
Open
feat(ai): add Glossary Copilot, a glossary-grounded Solana concept assistant#30paollacq wants to merge 3 commits intosolanabr:mainfrom
paollacq wants to merge 3 commits intosolanabr:mainfrom
Conversation
…concepts inside the product itself
…concepts inside the product itself sem chave de api
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
This PR adds Glossary Copilot to the existing Glossary OS frontend. Instead of adding a generic chatbot, it introduces a glossary-grounded AI interface that answers Solana questions using structured context from the glossary itself: current term, aliases, related concepts, confusions, next-step terms, mental models, and path context. The Copilot is available inline on term pages and in a dedicated
/[locale]/copilotworkspace, and can also explain Anchor or Solana code snippets using glossary vocabulary. The result is a more useful AI-native knowledge interface for builders, not just another search UI.Demo
Live app: https://solana-glossary-two.vercel.app/en/copilot
What This PR Adds
Ask AIpanel inside glossary term pages/[locale]/copilotExplain this codeinput for Anchor / Solana snippetsen,pt, andesWhy This Is Useful
Glossary OS already helps users browse and learn terminology. This PR turns that static knowledge layer into an interactive assistant for real developer questions.
Instead of asking users to jump between search, documentation, mental models, and related terms, the Copilot composes that context into one grounded answer. That makes it useful for:
Why This Is Different
This is not a generic chatbot and not a free-form LLM wrapper.
The Copilot is grounded in glossary data and uses structured context from the product:
That makes the AI output much more consistent with the glossary and much more relevant to Solana builders.
Routes
/en/term/[slug]-> inline Copilot on each term page/pt/term/[slug]-> inline Copilot in Portuguese UI/es/term/[slug]-> inline Copilot in Spanish UI/en/copilot-> dedicated Copilot workspace/pt/copilot-> dedicated Copilot workspace/es/copilot-> dedicated Copilot workspaceGemini Setup
Create
apps/glossary-os/.env.local:GEMINI_MODELis optional.After editing the file, restart the dev server.
Local Run
From the repository root:
Validation
Warning
cuidado para não vazarem a chave da api rs