OverleafCopilot: Empowering Academic Writing in Overleaf with Large Language Models

Haomin Wen,Zhenjie Wei,Yan Lin,Jiyuan Wang,Yuxuan Liang,Huaiyu Wan
2024-03-13
Abstract:The rapid development of Large Language Models (LLMs) has facilitated a variety of applications from different domains. In this technical report, we explore the integration of LLMs and the popular academic writing tool, Overleaf, to enhance the efficiency and quality of academic writing. To achieve the above goal, there are three challenges: i) including seamless interaction between Overleaf and LLMs, ii) establishing reliable communication with the LLM provider, and iii) ensuring user privacy. To address these challenges, we present OverleafCopilot, the first-ever tool (i.e., a browser extension) that seamlessly integrates LLMs and Overleaf, enabling researchers to leverage the power of LLMs while writing papers. Specifically, we first propose an effective framework to bridge LLMs and Overleaf. Then, we developed PromptGenius, a website for researchers to easily find and share high-quality up-to-date prompts. Thirdly, we propose an agent command system to help researchers quickly build their customizable agents. OverleafCopilot (
Computation and Language,Artificial Intelligence
What problem does this paper attempt to address?
This paper "OverleafCopilot: Enhancing Academic Writing on Overleaf with Large Language Models" explores how to integrate large language models (LLMs) with the popular online academic writing tool Overleaf to improve the efficiency and quality of academic writing. The main challenges faced by the authors include achieving seamless interaction between Overleaf and LLMs, establishing reliable communication with LLM providers, and protecting user privacy. To address these challenges, they developed OverleafCopilot, the first browser extension that integrates LLMs into Overleaf, enabling researchers to harness the power of LLMs while writing papers. The features of OverleafCopilot include: 1. Ease of use: Users can access it using an API key or a pre-provided license. 2. Versatility: It offers features such as proofreading, grammar checking, translation, writing suggestions, and has created a website called PromptGenius for sharing high-quality prompts. 3. Customizability: Users can customize prompts and shortcuts to suit their specific needs. 4. High privacy protection: It does not store the content of user requests and only forwards them to the LLM provider. The system architecture consists of a multi-module collaborative architecture built on Chrome extension technology, utilizing the Vue and Vuetify frameworks. It also incorporates a template directive engine that allows users to define proxy behaviors. Additionally, the paper introduces an event bus system that implements the publish-subscribe pattern for loosely-coupled communication between components, and utilizes layered event design to enhance flexibility. An online backend supports network operations related to OverleafCopilot, such as license activation and services. In conclusion, OverleafCopilot aims to enhance the efficiency of academic writing and assist researchers in producing high-quality papers by integrating LLMs.