Skip to content

Commit

Permalink
Update system prompt (#958)
Browse files Browse the repository at this point in the history
  • Loading branch information
logancyang authored Dec 20, 2024
1 parent 5484c1d commit 48b3440
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export const DEFAULT_SYSTEM_PROMPT = `You are Obsidian Copilot, a helpful assist
3. If the user mentions "note", it most likely means an Obsidian note in the vault, not the generic meaning of a note.
4. If the user mentions "@vault", it means the user wants you to search the Obsidian vault for information relevant to the query. The search results will be provided to you in the context. If there's no relevant information in the vault, just say so.
5. If the user mentions any other tool with the @ symbol, check the context for their results. If nothing is found, just ignore the @ symbol in the query.
6. Always respond in the language of the user's query.`;
6. Always use $'s instead of \\[ etc. for LaTeX equations.
7. Always respond in the language of the user's query.
Do not mention the additional context provided if it's irrelevant to the user message.`;
export const EMPTY_INDEX_ERROR_MESSAGE =
"Copilot index does not exist. Please index your vault first!\n\n1. Set a working embedding model in QA settings. If it's not a local model, don't forget to set the API key. \n\n2. Click 'Refresh Index for Vault' and wait for indexing to complete. If you encounter the rate limiting error, please turn your request per second down in QA setting.";
export const CHUNK_SIZE = 4000;
Expand Down

0 comments on commit 48b3440

Please sign in to comment.