(feat/extract) Multi-entity prompt improvements (#1181)

* Update build-prompts.ts

* Update build-prompts.ts

* Update build-prompts.ts

* Update build-prompts.ts
This commit is contained in:
Nicolas 2025-02-13 13:11:35 -03:00 committed by GitHub
parent 73ecaf74c2
commit 584221a106
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@ export function buildPreRerankPrompt(
url: string, url: string,
): string { ): string {
const schemaString = JSON.stringify(schema, null, 2); const schemaString = JSON.stringify(schema, null, 2);
return `Create a concise search query that combines the key data points from both the schema and prompt. Focus on the core information needed while keeping it general enough to find relevant matches. return `Create a concise search query that combines the key data points from both the schema and prompt. Focus on the core information needed while keeping it general enough to find relevant matches. If the user wants all the items, the search query should contain "all".
Schema: ${schemaString} Schema: ${schemaString}
Prompt: ${prompt} Prompt: ${prompt}