Skip to content

Commit fd05222

Browse files
committed
lint 2
1 parent d3eac37 commit fd05222

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/sample-app/sample_app/experiment/made_by_traceloop/quality_exp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async def quality_task(row):
4545
question = row.get("question", "This is a demo question")
4646
context = row.get("context", "This is a demo context")
4747
# Generate response
48-
completion = await generate_response(question)
48+
completion = await generate_response(question, context)
4949

5050
# Return data for evaluation
5151
return {

packages/traceloop-sdk/traceloop/sdk/evaluator/evaluators_made_by_traceloop.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ def char_count_ratio(
182182
return EvaluatorDetails(slug="char-count-ratio", version=None, config=config)
183183

184184
@staticmethod
185-
def word_count(
186-
) -> EvaluatorDetails:
185+
def word_count() -> EvaluatorDetails:
187186
"""
188187
Word count evaluator - counts the number of words in text.
189188
@@ -234,8 +233,7 @@ def faithfulness(
234233
return EvaluatorDetails(slug="faithfulness", version=None, config=config)
235234

236235
@staticmethod
237-
def profanity_detector(
238-
) -> EvaluatorDetails:
236+
def profanity_detector() -> EvaluatorDetails:
239237
"""
240238
Profanity detector evaluator - flags inappropriate language.
241239

0 commit comments

Comments
 (0)