How rnikitin/quantgpt works
QuantGPT is a Chainlit question-answering app for vectorbt PRO documentation and quantitative tutorials. Its main workflow is: a user submits a question, the chat handler queries a session engine, and the engine retrieves relevant indexed sections and synthesizes a response. Separate Scrapy spiders collect documentation and blog material; a Git-repository scraper also converts tutorial notebooks to Markdown. The README describes question-generation enrichment, but the sampled storage implementation has its extractor disabled. Edges reflect sampled calls or explicit README workflow statements; unsampled wiring is not inferred.
Main entry points: simple_vector_storage.py Retrieval and synthesis · quantgpt.py Chat handlers · qubitquants_repo_scraper.py Git tutorial scraper · vbt_pro_spider.py VectorBT docs spider
Components 15
Content collection
- VectorBT docs spider
quant_scraper/quant_scraper/spiders/vbt_pro_spider.py - Quant blog spider
quant_scraper/quant_scraper/spiders/qubit_quants_blog_spider.py
Index and retrieval
- Vector storage
quantgptlib/simple_vector_storage.py - Markdown loading
quantgptlib/simple_vector_storage.py - Persistent vector index
quantgptlib/simple_vector_storage.py - Retrieval and synthesis
quantgptlib/simple_vector_storage.py
Chat application
- Chainlit interface
quantgpt.py - Chat handlers
quantgpt.py
Tutorial conversion
- Git tutorial scraper
git_repo_scraper/qubitquants_repo_scraper.py - Converted Markdown
Other components
- Quant researcher
- OpenAI language model
- VectorBT documentation
- Blog Markdown corpus
- Tutorial notebooks
Connections 17
- Quant researcher → Chainlit interface: asks question
README.md - Chainlit interface → Chat handlers: routes messages
quantgpt.py - Chat handlers → Vector storage: initializes storage
quantgpt.py - Chat handlers → Retrieval and synthesis: queries engine
quantgpt.py - Vector storage → Markdown loading: loads documents
quantgptlib/simple_vector_storage.py - Markdown loading → Persistent vector index: builds index
quantgptlib/simple_vector_storage.py - Vector storage → Persistent vector index: loads or persists
quantgptlib/simple_vector_storage.py - Vector storage → Retrieval and synthesis: creates query engine
quantgptlib/simple_vector_storage.py - Retrieval and synthesis → Persistent vector index: retrieves sections
quantgptlib/simple_vector_storage.py - Retrieval and synthesis → OpenAI language model: synthesizes answer
quantgptlib/simple_vector_storage.py - Retrieval and synthesis → Chat handlers: returns response
quantgpt.py - VectorBT docs spider → VectorBT documentation: writes Markdown
quant_scraper/quant_scraper/spiders/vbt_pro_spider.py - Quant blog spider → Blog Markdown corpus: writes Markdown
quant_scraper/quant_scraper/spiders/qubit_quants_blog_spider.py - VectorBT documentation → Markdown loading: indexes content
README.md - Blog Markdown corpus → Markdown loading: indexes content
- Tutorial notebooks → Git tutorial scraper: converts notebooks
git_repo_scraper/qubitquants_repo_scraper.py - Git tutorial scraper → Converted Markdown: writes Markdown
git_repo_scraper/qubitquants_repo_scraper.py