| Connect LLMs to your browser... (manage multiple connections) |
...teach them some skills... ("when this happens, do that") |
...and help them learn! (they get better over time!) |
|---|---|---|
- Shortcuts for everything; no mouse needed
- Quickly change models & configurations
- Multiple channels with system prompts
graph LR
Prompt-->Skills-->Plan-->Execute-.->Prompt
When you submit a Prompt it's checked against every Skill individually. A Skill is made up of two sub-prompts, a Trigger Prompt and a Response Prompt. ModelPrompter creates a 3 message stack and asks the LLM to return 1 if the Skill matches the user's prompt based on a Skill Checker Prompt, or 0 otherwise:
[
{
role: 'system',
content: SkillCheckerPrompt
},
{
role: 'user',
content: YourPrompt
},
{
role: 'user',
content: SkillTrigger1
}
]It does this for every Skill, creating a new stack of potential Skills to use. This new stack, along with the original Prompt, is then sent to the Planner.
After the Skills are gathered, a new message stack is created by combining the Planning Prompt, the relevant Skills, and all of the Channel's messages and sent back to the LLM. This time, any output from the LLM rendered in a <pre class="modelprompter"></pre> will get extracted and run as JavaScript in the context of the browser extension.
[
{
role: 'system',
content: PlanningPrompt
},
...Skills,
...ChannelMessages,
{
role: 'user',
content: YourPrompt
}
]Once the plan has been output and all of the code extracted and run, the Chat Turn has ended and the user must type another prompt to continue. However, ModelPromper exposes modelprompter.prompt(newPrompt) so that the LLM can act on behalf of the user and continue iterating on the plan.
After setup, press the icon or hold CTRL+SHIFT to begin navigating the interface. While holding that, tap left or right to change tabs and up and down to select things.
Playstore coming soon: I'll make it easier to setup later, but for now you'll need to build from source.
- git - https://git-scm.com/downloads
- NodeJS - https://nodejs.org/en/download/
# Clone this project locally
git clone https://github.com/modelprompters/modelprompter
cd modelprompter
# Install dependencies
npm install- Visit
chrome://extensions(even if you're on edge etc, your browser should automatically redirect) - Enable Developer Mode
- Click Load unpacked extension and select the
modelprompter/distfolder - Enable the ModelPrompter extension
- Click on the ModelPrompter icon or press CTRL+SHIFT+SPACE to begin
This project comes with a live reload server, so you can write code without having to manually refresh anything. Sometimes it crashes spectacularly though. If you suddenly start getting strange errors and bugs while you're developing, try manually reloading the extension.
# Start a local dev server
npm start
# Stop the server
# CTRL+C- Markdown Attributes
- Mermaid
- See here for extras: https://github.com/wekan/markdown-it-mermaid#readme
- Why are skills checked individually? Although this creates more calls to the LLM, the idea is that it will make the system more accurate by hyperfocusing on one skill at a time.