Our cookbook shows how a developer can leverage the promptfoo library in TypeScript to compute similarity scores and persist the results of their experiments directly on Literal AI.

The full source code can be found in our cookbooks repository