LLM-based tools for Overleaf
LeafLLM Extension
This extension adds the power of large-language models (LLMs) to Overleaf.com
Using this addon, you can select text in Overleaf and ask LLM (e.g., OpenAI GPT) to complete this text or improve it. You write a question for the LLM, select it, and ask it.
After installing the extension, configure it by clicking on its icon, and following the instructions.
Full instructions on the plugin's website - https://github.com/bThink-BGU/LeafLLM
Configuration
**************
The plugin can be configured by clicking the plugin button in the Chrome toolbar.
It requires inserting an API key from OpenAI.
You also need to choose which tools you wish to enable. See below if you have problems using the tools.
Usage
*******
After selecting text, press:
- Alt+A to ask the LLM
- Alt+C to complete the selected text
- Alt+I to improve the selected text
See usage examples at: https://github.com/bThink-BGU/LeafLLM?tab=readme-ov-file#usage
Issues
*******
If nothing happens when you use the plugin, verify that the plugin's shortcuts are not in conflict with other plugins' shortcuts. To do so, go to chrome://extensions/shortcuts.
If you encounter any problem/question, please open an issue in the project's repository.
Privacy
********
The plugin saves its configuration locally on the user's computer. The plugin sends the API key and the selected text to OpenAI only, and only for the purpose it was made for (i.e., completing and improving text and asking GPT questions). The plugin's authors are not responsible for what OpenAI does with this data. The plugin's authors do not collect any data from the plugin's users.
Read more
Using this addon, you can select text in Overleaf and ask LLM (e.g., OpenAI GPT) to complete this text or improve it. You write a question for the LLM, select it, and ask it.
After installing the extension, configure it by clicking on its icon, and following the instructions.
Full instructions on the plugin's website - https://github.com/bThink-BGU/LeafLLM
Configuration
**************
The plugin can be configured by clicking the plugin button in the Chrome toolbar.
It requires inserting an API key from OpenAI.
You also need to choose which tools you wish to enable. See below if you have problems using the tools.
Usage
*******
After selecting text, press:
- Alt+A to ask the LLM
- Alt+C to complete the selected text
- Alt+I to improve the selected text
See usage examples at: https://github.com/bThink-BGU/LeafLLM?tab=readme-ov-file#usage
Issues
*******
If nothing happens when you use the plugin, verify that the plugin's shortcuts are not in conflict with other plugins' shortcuts. To do so, go to chrome://extensions/shortcuts.
If you encounter any problem/question, please open an issue in the project's repository.
Privacy
********
The plugin saves its configuration locally on the user's computer. The plugin sends the API key and the selected text to OpenAI only, and only for the purpose it was made for (i.e., completing and improving text and asking GPT questions). The plugin's authors are not responsible for what OpenAI does with this data. The plugin's authors do not collect any data from the plugin's users.
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "action": { "default_popup": "popup/popup.html", "default_icon": "popup/LeafLLM.png" }, "content_scripts": [ { "js": ["scripts/jquery.js", "scripts/content.js"], "matches": ["https://*.overleaf.com/project/*"] } ], "description": "LLM-based tools for Overleaf", "icons": { "16": "popup/LeafLLM_16.png", "48": "popup/LeafLLM_48.png", "128": "popup/LeafLLM_128.png" }, "commands": { "Complete": { "suggested_key": { "default": "Alt+C" }, "description": "Complete selected text" }, "Improve": { "suggested_key": { "default": "Alt+I" }, "description": "Improve selected text" }, "Ask": { "suggested_key": { "default": "Alt+A" }, "description": "Use the selected text to ask GPT. It adds to the beginning of the selected text: 'In Latex, '" } }, "background": { "service_worker": "scripts/service-worker.js" }, "permissions": ["storage", "tabs"], "manifest_version": 3, "name": "LeafLLM", "homepage_url": "https://github.com/achiyae/LeafLLM", "version": "1.4.1"}
Read more