Add TS support for synthetic data, simulation parity, and prompt optimization#2798
Add TS support for synthetic data, simulation parity, and prompt optimization#2798theanuragg wants to merge 3 commits into
Conversation
… generation capabilities
|
@theanuragg is attempting to deploy a commit to the Confident AI Team on Vercel. A member of the Team first needs to authorize it. |
…rt local instantiation, and modularize Synthesizer evolution templates.
|
@theanuragg thanks for the PR. However it is near impossible to review. If you could break this down into scoped changed, I'm happy to take a look. |
66ddf40 to
d9c13c8
Compare
The diff looks a lot bigger than the logical changes because Prettier reformatted a bunch of existing files. The actual code changes are scoped into a few areas:
▫ ▫
Did small plumbing updates and minor fixes across the file I worked on. |
This PR advances the TypeScript SDK toward the post–July 1st parity goals from #2734 by surfacing synthetic data generation, simulation parity, and prompt optimization capabilities in TS.
Concretely, it:
SynthesizerAPI for synthetic data generation in TypeScript, allowing users to generate goldens from documents, contexts, scratch, or existing goldens, with evolution and filtration configs aligned with the Python implementation./typescriptdesign.PromptOptimizerfor prompt optimization in TS, providing a metric-driven, iterative optimization loop that mirrors Python’s behavior while feeling natural for TypeScript users.These changes are wired into the public TS exports and documented, so TS users can now:
This PR focuses on API completeness and parity; follow‑ups can refine algorithms and add more examples once these surfaces are battle‑tested.