refinePrompt
chainalign-backend / services/RAGService / refinePrompt
Function: refinePrompt()
refinePrompt(
initialPrompt,taskDescription):Promise<string>
Defined in: services/RAGService.js:51
Refines an initial prompt using the meta-prompting service.
Parameters
initialPrompt
string
The initial prompt to refine.
taskDescription
string
A description of the task for which the prompt is being refined.
Returns
Promise<string>
The refined prompt.