truera / trulens

Evaluation and Tracking for LLM Experiments
https://www.trulens.org/
MIT License
1.84k stars 161 forks source link

Change `context_filter` guard rail to take in an argument for what to use as the prompt as it was confusing and causing issues before. #1252

Closed sfc-gh-dkurokawa closed 1 week ago

sfc-gh-dkurokawa commented 1 week ago

Description

Change context_filter guard rail to take in an argument for what to use as the prompt as it was confusing and causing issues before.

Before, it was taking the second positional argument arbitrarily.

Other details good to know for developers

Type of change