Gambit.ai
A chess practice app with an opening explorer and a chatbot that answers questions about your own chess.com games.The opening explorer lets you click through moves on a board and see every main-line branch from the Lichess masters database, with how often each move is played and how it has scored, plus the opening name and ECO code for the current position.
The game chatbot loads your recent chess.com games and answers questions about them, grounded in the games you actually played.
Games are pulled from the chess.com public API (the last three months by default), parsed with python-chess, and turned into a text summary of the players, opening, result and moves. Each summary is embedded with nomic-embed-text and stored in Chroma.
A question is embedded the same way, the five closest games are retrieved, and Llama 3.1 8B answers from those excerpts. Both models run locally through Ollama.
React, TypeScript and Vite with chess.js and react-chessboard on the frontend; FastAPI on the backend, with Clerk for auth.