|
| 1 | +# AI support |
| 2 | + |
| 3 | +You can opt-in to use your favorite AI model (LLM) to help you with your notes. |
| 4 | +There is built-in support for **[Groq](https://groq.com/)** (because you can get free API keys) and **[OpenAI](https://openai.com/)**, |
| 5 | +but the internal API is designed to be easily extendable to other AI models with scripts. |
| 6 | +There are several AI backend integrations scripts available in the script repository to get you started. |
| 7 | + |
| 8 | +:::tip |
| 9 | +The **OpenAI completion API** was implemented to be used in **scripts**. |
| 10 | +This way you can do whatever you want and experiment with it. |
| 11 | +::: |
| 12 | + |
| 13 | +- There is an **AI toolbar** and a section in the **Edit main menu**, where can turn |
| 14 | + the service on, and you can select the AI backend and model |
| 15 | +- You can add an [OpenAI](https://openai.com/) and [Groq](https://groq.com/) API key in the new **AI settings** |
| 16 | + - Look for more **AI backend integrations**, like _Ollama_ and _llama.cpp_ in the script repository |
| 17 | +- Use the new `script.aiComplete(prompt)` scripting command to your own imagination |
| 18 | + - For more information please take a look at the |
| 19 | + [Scripting documentation](../scripting/methods-and-objects.md#use-a-completion-prompt-on-the-currently-selected-ai-model) |
| 20 | +- In the **script repository**, as a first step, there is a script |
| 21 | + [AI Autocompletion](https://github.com/qownnotes/scripts/tree/master/ai-autocompletion), |
| 22 | + that uses the selected AI model to **autocomplete the current selection** in the note text edit, |
| 23 | + and a script [AI Text Tool](https://github.com/qownnotes/scripts/tree/master/ai-text-tool), |
| 24 | + that uses the selected AI model to **process the current selection** in the note text edit, |
| 25 | + for example to summarize it, to translate it or to fix typos and grammar errors |
| 26 | + |
| 27 | + |
0 commit comments