Support draft analysis generation
We want to make it possible for torque to provide draft analysis sections to provide LFC staff with a starting point.
The API should support this content generation. It should be decoupled from torque (so it should take in all data that will be useful for that content generation, including past drafts as well as any supplementary material).
The example structure provided by @justin is...
Query:
{
"proposal": {},
"currentAnalysis": {},
"structure": [
{
"section": "Strength of Approach",
"instructions": "…",
"children": [
{
"section": "Collaborative Partnership",
"instructions": "…",
"idealWordLength": 300,
}
]
}
],
"instructions": ""
}
This would allow torque to send the existing content. I would suggest we somehow change proposal
to something more generic -- it should basically provide a bunch of structured source material, broken into sections with descriptions of each section so our middleware has the option of providing that context to the LLM.
I also think we need to have two categories of instruction (user instruction vs system instruction) which would allow torque to describe each section's instructions but allow the user to provide additional instructions (e.g. "please focus on X aspect of the proposal")