Allows you to check for semantic similarity or dissimilarity between input and output and a
target value, so you can avoid sentences that you don’t want to be present without having to
match on the exact text.
POST
/
langevals
/
similarity
/
evaluate
Copy
import langwatchdf = langwatch.datasets.get_dataset("dataset-id").to_pandas()experiment = langwatch.experiment.init("my-experiment")for index, row in experiment.loop(df.iterrows()): # your execution code here experiment.evaluate( "langevals/similarity", index=index, data={ "input": row["input"], "output": output, }, settings={} )