diff --git a/src/tools/dedup.ts b/src/tools/dedup.ts
index 8fa6cf7..ab1ce06 100644
--- a/src/tools/dedup.ts
+++ b/src/tools/dedup.ts
@@ -7,7 +7,7 @@ import { DedupResponse } from '../types';
const responseSchema = {
type: SchemaType.OBJECT,
properties: {
- thought: {
+ think: {
type: SchemaType.STRING,
description: "Strategic reasoning about the overall deduplication approach"
},
@@ -19,7 +19,7 @@ const responseSchema = {
description: "Array of semantically unique queries from set A"
}
},
- required: ["thought", "unique_queries"]
+ required: ["think", "unique_queries"]
};
const genAI = new GoogleGenerativeAI(GEMINI_API_KEY);
diff --git a/src/tools/error-analyzer.ts b/src/tools/error-analyzer.ts
index 4f6365e..7f55b94 100644
--- a/src/tools/error-analyzer.ts
+++ b/src/tools/error-analyzer.ts
@@ -36,7 +36,7 @@ const model = genAI.getGenerativeModel({
function getPrompt(diaryContext: string[]): string {
return `You are an expert at analyzing search and reasoning processes. Your task is to analyze the given sequence of steps and identify what went wrong in the search process.
-Focus on:
+
1. The sequence of actions taken
2. The effectiveness of each step
3. The logic between consecutive steps
@@ -44,9 +44,17 @@ Focus on:
5. Signs of getting stuck in repetitive patterns
6. Whether the final answer matches the accumulated information
-Based on the steps provided, generate a JSON response following this schema.
+Analyze the steps and provide detailed feedback following these guidelines:
+- In the recap: Summarize key actions chronologically, highlight patterns, and identify where the process started to go wrong
+- In the blame: Point to specific steps or patterns that led to the inadequate answer
+- In the improvement: Provide actionable suggestions that could have led to a better outcome
-Example steps to analyze:
+Generate a JSON response following JSON schema.
+
+
+
+
+
At step 1, you took the **search** action and look for external information for the question: "how old is jina ai ceo?".
In particular, you tried to search for the following keywords: "jina ai ceo age".
@@ -84,6 +92,8 @@ You found some useful information on the web and add them to your knowledge for
At step 7, you took **answer** action but evaluator thinks it is not a good answer:
+
+
Original question:
how old is jina ai ceo?
@@ -92,13 +102,10 @@ The age of the Jina AI CEO cannot be definitively determined from the provided i
The evaluator thinks your answer is bad because:
The answer is not definitive and fails to provide the requested information. Lack of information is unacceptable, more search and deep reasoning is needed.
+
-Analyze the steps and provide detailed feedback following these guidelines:
-- In the recap: Summarize key actions chronologically, highlight patterns, and identify where the process started to go wrong
-- In the blame: Point to specific steps or patterns that led to the inadequate answer
-- In the improvement: Provide actionable suggestions that could have led to a better outcome
-Example analysis output:
+
+
Review the steps below carefully and generate your analysis following this format.
${diaryContext.join('\n')}