How binary-husky/gpt_academic works
GPT Academic is a Gradio-based academic writing and research assistant. Users submit chat requests or invoke modular plugins; the application routes model requests through a common LLM bridge and plugins provide specialized document, research, coding, and media workflows. Major documented capabilities include multi-model querying, paper search and review, PDF/LaTeX work, internet research, RAG, and real-time audio. Some subsystem links are dashed because the relevant implementations were not excerpted; the graph does not assume an undocumented call sequence.
Main entry points: crazy_functional.py Plugin registry · main.py Gradio application · query_processor.py Review orchestration · review_handler.py Review generation
Components 26
Application and plugins
- Gradio application
main.py - Plugin dispatcher
toolbox.py - Plugin registry
crazy_functional.py - Plugin utilities
crazy_functions/crazy_utils.py
Model services
- Model bridge
request_llms/bridge_all.py - LLM providers
request_llms/bridge_chatgpt.py - Multi-model query
crazy_functions/Multi_LLM_Query.py
Research workflows
- Review query analysis
crazy_functions/review_fns/query_analyzer.py - Review orchestration
crazy_functions/review_fns/query_processor.py - Paper sources
crazy_functions/review_fns/data_sources/base_source.py - Review generation
crazy_functions/review_fns/handlers/review_handler.py - Paper ranking
crazy_functions/review_fns/paper_processor/paper_llm_ranker.py - GitHub query analysis
crazy_functions/paper_fns/auto_git/query_analyzer.py
Document workflows
- PDF workflows
crazy_functions/PDF_Translate.py - LaTeX workflows
crazy_functions/Latex_Function.py - Document readers
- Document output
crazy_functions/doc_fns/conversation_doc/word_doc.py
Knowledge and media
- RAG interface
crazy_functions/Rag_Interface.py - Vector retrieval
crazy_functions/rag_fns/llama_index_worker.py - Vector database
crazy_functions/vector_fns/vector_database.py - Internet research
crazy_functions/Internet_GPT.py - Live audio
crazy_functions/Audio_Assistant.py - Audio input
crazy_functions/live_audio/audio_io.py
Other components
- User
- Model APIs
- Research services
Connections 26
- User → Gradio application: submits request
README.md - Gradio application → Plugin registry: loads plugins
main.py - Gradio application → Plugin dispatcher: routes requests
main.py - Plugin dispatcher → Plugin utilities: uses helpers
toolbox.py - Plugin utilities → Model bridge: requests models
crazy_functions/crazy_utils.py - Multi-model query → Plugin utilities: requests parallel query
crazy_functions/Multi_LLM_Query.py - Model bridge → LLM providers: dispatches model calls
request_llms/bridge_all.py - LLM providers → Model APIs: calls provider
- Plugin registry → Review orchestration: offers review plugin
- Review orchestration → Review query analysis: analyzes query
crazy_functions/review_fns/query_processor.py - Review orchestration → Review generation: dispatches review
crazy_functions/review_fns/query_processor.py - Review generation → Paper sources: searches papers
- Review generation → Paper ranking: ranks papers
crazy_functions/review_fns/handlers/review_handler.py - Paper sources → Research services: searches literature
- Plugin registry → GitHub query analysis: offers GitHub search
- Plugin registry → PDF workflows: offers PDF tools
crazy_functional.py - Plugin registry → LaTeX workflows: offers LaTeX tools
crazy_functional.py - PDF workflows → Document readers: uses document parsing
- Document readers → Document output: feeds document output
- Plugin registry → RAG interface: offers RAG
crazy_functional.py - RAG interface → Vector retrieval: uses retrieval worker
crazy_functions/Rag_Interface.py - RAG interface → Vector database: uses vector storage
crazy_functions/Rag_Interface.py - Vector retrieval → Model APIs: creates embeddings
- Plugin registry → Internet research: offers web research
crazy_functional.py - Plugin registry → Live audio: offers audio dialogue
crazy_functional.py - Live audio → Audio input: uses audio input