mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 07:49:00 +08:00
Merge pull request #1084 from mendableai/added-today-to-extract-prompts
Added "today" to extract prompts
This commit is contained in:
commit
3f9b8a0bf5
@ -500,7 +500,7 @@ export async function performExtraction(
|
||||
(request.systemPrompt ? `${request.systemPrompt}\n` : "") +
|
||||
`Always prioritize using the provided content to answer the question. Do not make up an answer. Do not hallucinate. Be concise and follow the schema always if provided. If the document provided is not relevant to the prompt nor to the final user schema ${JSON.stringify(multiEntitySchema)}, return null. Here are the urls the user provided of which he wants to extract information from: ` +
|
||||
links.join(", "),
|
||||
prompt: request.prompt,
|
||||
prompt: "Today is: " + new Date().toISOString() + "\n" + request.prompt,
|
||||
schema: multiEntitySchema,
|
||||
},
|
||||
buildDocument(doc),
|
||||
@ -693,7 +693,7 @@ export async function performExtraction(
|
||||
(request.systemPrompt ? `${request.systemPrompt}\n` : "") +
|
||||
"Always prioritize using the provided content to answer the question. Do not make up an answer. Do not hallucinate. Return 'null' the property that you don't find the information. Be concise and follow the schema always if provided. Here are the urls the user provided of which he wants to extract information from: " +
|
||||
links.join(", "),
|
||||
prompt: request.prompt,
|
||||
prompt: "Today is: " + new Date().toISOString() + "\n" + request.prompt,
|
||||
schema: rSchema,
|
||||
},
|
||||
singleAnswerDocs.map((x) => buildDocument(x)).join("\n"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user