@semiont/jobs 0.4.7 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11435,13 +11435,14 @@ Knowledge graph context:
|
|
|
11435
11435
|
${parts.join("\n")}`;
|
|
11436
11436
|
}
|
|
11437
11437
|
}
|
|
11438
|
+
const structureGuidance = finalMaxTokens >= 1e3 ? "organized into titled sections (## Section) with well-structured paragraphs" : "organized into well-structured paragraphs";
|
|
11438
11439
|
const prompt = `Generate a concise, informative resource about "${topic}".
|
|
11439
11440
|
${entityTypes.length > 0 ? `Focus on these entity types: ${entityTypes.join(", ")}.` : ""}
|
|
11440
11441
|
${userPrompt ? `Additional context: ${userPrompt}` : ""}${annotationSection}${contextSection}${graphContextSection}${languageInstruction}
|
|
11441
11442
|
|
|
11442
11443
|
Requirements:
|
|
11443
11444
|
- Start with a clear heading (# Title)
|
|
11444
|
-
-
|
|
11445
|
+
- Aim for approximately ${finalMaxTokens} tokens of content, ${structureGuidance}
|
|
11445
11446
|
- Be factual and informative
|
|
11446
11447
|
- Use markdown formatting
|
|
11447
11448
|
- Return ONLY the markdown content, no JSON, no code fences, no additional wrapper`;
|