mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-27 19:25:15 +02:00
add quick-ask page with default action menu
This commit is contained in:
parent
2a8f393cde
commit
d48f6aafce
2 changed files with 185 additions and 0 deletions
68
surfsense_web/app/quick-ask/actions.ts
Normal file
68
surfsense_web/app/quick-ask/actions.ts
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
import type { QuickAskAction } from "@/contracts/types/quick-ask-actions.types";
|
||||
|
||||
export const DEFAULT_ACTIONS: QuickAskAction[] = [
|
||||
{
|
||||
id: "fix-grammar",
|
||||
name: "Fix grammar",
|
||||
prompt: "Fix the grammar and spelling in the following text. Return only the corrected text, nothing else.\n\n{selection}",
|
||||
mode: "transform",
|
||||
icon: "check",
|
||||
group: "transform",
|
||||
},
|
||||
{
|
||||
id: "make-shorter",
|
||||
name: "Make shorter",
|
||||
prompt: "Make the following text more concise while preserving its meaning. Return only the shortened text, nothing else.\n\n{selection}",
|
||||
mode: "transform",
|
||||
icon: "minimize",
|
||||
group: "transform",
|
||||
},
|
||||
{
|
||||
id: "translate",
|
||||
name: "Translate",
|
||||
prompt: "Translate the following text to English. If it is already in English, translate it to French. Return only the translation, nothing else.\n\n{selection}",
|
||||
mode: "transform",
|
||||
icon: "languages",
|
||||
group: "transform",
|
||||
},
|
||||
{
|
||||
id: "rewrite",
|
||||
name: "Rewrite",
|
||||
prompt: "Rewrite the following text to improve clarity and readability. Return only the rewritten text, nothing else.\n\n{selection}",
|
||||
mode: "transform",
|
||||
icon: "pen-line",
|
||||
group: "transform",
|
||||
},
|
||||
{
|
||||
id: "explain",
|
||||
name: "Explain",
|
||||
prompt: "Explain the following text in simple terms:\n\n{selection}",
|
||||
mode: "explore",
|
||||
icon: "book-open",
|
||||
group: "explore",
|
||||
},
|
||||
{
|
||||
id: "summarize",
|
||||
name: "Summarize",
|
||||
prompt: "Summarize the following text:\n\n{selection}",
|
||||
mode: "explore",
|
||||
icon: "list",
|
||||
group: "explore",
|
||||
},
|
||||
{
|
||||
id: "search-knowledge",
|
||||
name: "Search my knowledge",
|
||||
prompt: "Search my knowledge base for information related to:\n\n{selection}",
|
||||
mode: "explore",
|
||||
icon: "search",
|
||||
group: "knowledge",
|
||||
},
|
||||
{
|
||||
id: "search-web",
|
||||
name: "Search the web",
|
||||
prompt: "Search the web for information about:\n\n{selection}",
|
||||
mode: "explore",
|
||||
icon: "globe",
|
||||
group: "knowledge",
|
||||
},
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue