feat(server): update tool descriptions and AI prompt (#13032)

update tools description & chat prompt

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Updated the AFFiNE AI copilot system prompt to reflect support for
multiple AI providers and a more concise, structured format with clearer
guidelines and modular tags.

* **Enhancements**
* Improved descriptions for document search and reading tools, providing
clearer guidance on when and how to use keyword search, semantic search,
and document reading features.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Hwang
2025-07-04 16:06:21 +08:00
committed by GitHub
parent 296089efc9
commit a485ad5c45
4 changed files with 19 additions and 30 deletions
@@ -56,7 +56,7 @@ export const createDocSemanticSearchTool = (
) => {
return tool({
description:
'Semantic search for relevant documents in the current workspace',
'Retrieve conceptually related passages by performing vector-based semantic similarity search across embedded documents; call this tool only when exact keyword search fails or the user explicitly needs meaning-level matches (e.g., paraphrases, synonyms, broader concepts).',
parameters: z.object({
query: z
.string()