feat(ai): add generate_chart and insert_chart_in_note to system prompt
This commit is contained in:
@@ -220,11 +220,13 @@ Momento is an intelligent note-taking application. Key features include:
|
||||
- **Lab**: Experimental AI tools for data analysis and deeper insights.
|
||||
|
||||
## Available tools
|
||||
You have access to: note_search, note_read, note_find_and_update, document_search, task_extract, web_search, web_scrape.
|
||||
You have access to: note_search, note_read, note_find_and_update, document_search, task_extract, web_search, web_scrape, generate_chart, insert_chart_in_note.
|
||||
Only use tools if you need more information. Never invent note IDs or URLs.
|
||||
- document_search: Searches attached PDF documents for the current note/notebook. Use when the user asks about documents or files.
|
||||
- task_extract: Extracts action items from notes and creates a synthesis note. Use when the user asks to extract tasks or TODOs.
|
||||
- note_find_and_update: Finds a note by search query and appends/prepends/replaces content. Use when the user says "find the note about X and add Y to it".`,
|
||||
- note_find_and_update: Finds a note by search query and appends/prepends/replaces content. Use when the user says "find the note about X and add Y to it".
|
||||
- generate_chart: Generates a chart (bar, line, area, pie, radar, funnel, gauge) from data and returns it as markdown. Use when the user asks for a chart, graph, visualization, or wants to see data visually.
|
||||
- insert_chart_in_note: Creates a chart and directly inserts it into a note. Use when the user says "make a chart", "create a graph", "visualize this data" in the context of editing a note.`,
|
||||
},
|
||||
fr: {
|
||||
contextWithNotes: `## Notes et documents de l'utilisateur\n\n${contextNotes}\n\nQuand tu utilises une info venant des notes ci-dessus, cite le titre de la note source entre parenthèses, ex: "Le déploiement se fait via Docker (💻 Development Guide)". Pour les documents PDF, cite le nom du fichier et la page, ex: "Le chiffre d'affaires est de 5M$ (📄 rapport.pdf p.12)". Ne recopie pas mot pour mot — reformule.`,
|
||||
@@ -255,10 +257,12 @@ Only use tools if you need more information. Never invent note IDs or URLs.
|
||||
Momento est une application de prise de notes intelligente. Ses fonctionnalités : Éditeur Markdown riche, Copilot IA, Organisation par Carnets, Recherche sémantique, Agents IA, Lab.
|
||||
|
||||
## Outils disponibles
|
||||
Tu as accès à : note_search, note_read, note_find_and_update, document_search, task_extract, web_search, web_scrape.
|
||||
Tu as accès à : note_search, note_read, note_find_and_update, document_search, task_extract, web_search, web_scrape, generate_chart, insert_chart_in_note.
|
||||
- document_search : Recherche dans les documents PDF attachés à la note/au carnet.
|
||||
- task_extract : Extrait les tâches/action items des notes et crée une note de synthèse.
|
||||
- note_find_and_update : Trouve une note par recherche textuelle et ajoute/prépose/remplace du contenu. Utilise quand l'utilisateur dit "trouve la note sur X et ajoute-y Y".`,
|
||||
- note_find_and_update : Trouve une note par recherche textuelle et ajoute/prépose/remplace du contenu. Utilise quand l'utilisateur dit "trouve la note sur X et ajoute-y Y".
|
||||
- generate_chart : Génère un graphique (barres, ligne, aire, circulaire, radar, entonnoir, jauge) à partir de données et le retourne en markdown. Utilise quand l'utilisateur demande un graphique, une visualisation, ou veut voir des données visuellement.
|
||||
- insert_chart_in_note : Crée un graphique et l'insère directement dans une note. Utilise quand l'utilisateur dit "fais un graphique", "crée un chart", "visualise ces données" dans le contexte d'édition d'une note.`,
|
||||
},
|
||||
fa: {
|
||||
contextWithNotes: `## یادداشتهای کاربر\n\n${contextNotes}\n\nهنگام استفاده از اطلاعات یادداشتهای بالا، عنوان یادداشت منبع را در پرانتز ذکر کنید.`,
|
||||
|
||||
Reference in New Issue
Block a user