Skip to content

Commit d01d5f1

Browse files
reduce similarity threshold, rename searchDocs to search
1 parent 6cf1a45 commit d01d5f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/utils/query-vector-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getDocsFileContent } from "./content.js";
33
import { embed } from "ai";
44
import { openai } from "@ai-sdk/openai";
55

6-
const MIN_SCORE = process.env.MIN_SCORE ? parseFloat(process.env.MIN_SCORE) : 0.4;
6+
const MIN_SCORE = process.env.MIN_SCORE ? parseFloat(process.env.MIN_SCORE) : 0.25;
77

88
if (!process.env.OPENAI_API_KEY) {
99
throw new Error("OPENAI_API_KEY is not set");

src/tools/search-docs.tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface SearchDocsInput {
88
}
99

1010
class SearchDocsTool extends MCPTool<SearchDocsInput> {
11-
name = "searchDocs";
11+
name = "search";
1212
description = dedent`
1313
Search the Appwrite documentation.
1414
Note, for code examples and technology-specific information, it's best to use listFeatures and getFeatureExamples tools.

0 commit comments

Comments
 (0)