Scholar Copilot is an intelligent academic writing assistant that enhances the research writing process through AI-powered text completion and citation suggestions. Built by TIGER-Lab, it aims to streamline academic writing while maintaining high scholarly standards.
- Next-3-Sentence Suggestions: Get contextually relevant suggestions for your next three sentences
- Full Section Auto-Completion: Generate complete sections with appropriate academic structure and flow
- Context-Aware Writing: All generations consider your existing text to maintain coherence
- Real-time Citation Suggestions: Receive relevant paper citations based on your writing context
- One-Click Citation Insertion: Easily select and insert citations in proper academic format
- Citation Bibtex Generation: Automatically generate and export bibtex entries for your citations
Scholar Copilot employs a unified model architecture that seamlessly integrates retrieval and generation through a dynamic switching mechanism. During the generation process, the model autonomously determines appropriate citation points using learned citation patterns. When a citation is deemed necessary, the model temporarily halts generation, utilizes the hidden states of the citation token to retrieve relevant papers from the corpus, inserts the selected references, and then resumes coherent text generation.
To set up the ScholarCopilot demo on your own server, follow these simple steps:
- Clone the repository:
git clone [email protected]:TIGER-AI-Lab/ScholarCopilot.git
cd ScholarCopilot/run_demo
- Set up the environment:
pip install -r requirements.txt
- Download the required model and data:
bash download.sh
- Launch the demo:
bash run_demo.sh