소스 검색

enh: note editor prompts

Timothy Jaeryang Baek 3 달 전
부모
커밋
6f896c4352
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      src/lib/components/notes/NoteEditor.svelte
  2. 2 2
      src/lib/components/notes/NoteEditor/Chat.svelte

+ 1 - 1
src/lib/components/notes/NoteEditor.svelte

@@ -632,7 +632,7 @@ Input will be provided within <notes> and <context> XML tags, providing a struct
 
 # Output Format
 
-Provide the enhanced notes in markdown format. Use markdown syntax for headings, lists, and emphasis to improve clarity and presentation. Ensure that all integrated content from the context is accurately reflected. Return only the markdown formatted note.
+Provide the enhanced notes in markdown format. Use markdown syntax for headings, lists (ordered, bullet, or checklist), and emphasis to improve clarity and presentation. Ensure that all integrated content from the context is accurately reflected. Return only the markdown formatted note.
 `;
 
 		const [res, controller] = await chatCompletion(

+ 2 - 2
src/lib/components/notes/NoteEditor/Chat.svelte

@@ -85,7 +85,7 @@
 	const DEFAULT_DOCUMENT_EDITOR_PROMPT = `You are an expert document editor.
 
 ## Task
-Based on the user's instruction, update and enhance the existing notes by incorporating relevant and accurate information from the provided context. Ensure all edits strictly follow the user’s intent.
+Based on the user's instruction, update and enhance the existing notes by incorporating relevant and accurate information from the provided context in the content's primary language. Ensure all edits strictly follow the user’s intent.
 
 ## Input Structure
 - Existing notes: Enclosed within <notes></notes> XML tags.
@@ -95,7 +95,7 @@ Based on the user's instruction, update and enhance the existing notes by incorp
 ## Output Instructions
 - Deliver a single, rewritten version of the notes in markdown format.
 - Integrate information from the context only if it directly supports the user's instruction.
-- Use clear, organized markdown elements: headings, bullet points, numbered lists, bold and italic text as appropriate.
+- Use clear, organized markdown elements: headings, lists (ordered, bullet, or checklist), bold and italic text as appropriate.
 - Focus on improving clarity, completeness, and usefulness of the notes.
 - Return only the final, fully-edited markdown notes—do not include explanations, reasoning, or XML tags.
 `;