From 75e2b8f019b2f875ff03e0d99f39504756fe8de3 Mon Sep 17 00:00:00 2001 From: Hui Wen <45724323+huiwengoh@users.noreply.github.com> Date: Tue, 16 Apr 2024 01:31:11 -0400 Subject: [PATCH] fix typos Co-authored-by: Jonas Mueller <1390638+jwmueller@users.noreply.github.com> --- cleanlab_studio/studio/trustworthy_language_model.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cleanlab_studio/studio/trustworthy_language_model.py b/cleanlab_studio/studio/trustworthy_language_model.py index e944ccbc..8dd1718a 100644 --- a/cleanlab_studio/studio/trustworthy_language_model.py +++ b/cleanlab_studio/studio/trustworthy_language_model.py @@ -303,9 +303,9 @@ async def prompt_async( This method is similar to the [`prompt()`](#method-prompt) method but operates asynchronously, allowing for non-blocking concurrent operations. - Use this method if the prompts are streaming in one at a time, and you want to returs the results - for each input as quickly as possible, without the execution of any one TLM prompt blocking the execution of other TLM prompts. - Note that asynchronous methods do not block until completion, so you will need to fetch the results yourself later. + Use this method if prompts are streaming in one at a time, and you want to return results + for each one as quickly as possible, without the TLM execution of any one prompt blocking the execution of the others. + Asynchronous methods do not block until completion, so you will need to fetch the results yourself. Args: prompt (str | Sequence[str]): prompt (or list of multiple prompts) for the TLM @@ -460,9 +460,9 @@ async def get_trustworthiness_score_async( This method is similar to the [`get_trustworthiness_score()`](#method-get_trustworthiness_score) method but operates asynchronously, allowing for non-blocking concurrent operations. - Use this method if the prompts-response pairs are streaming in one at a time, and you want to returs the results - for each input as quickly as possible, without the execution of any one TLM call blocking the execution of other TLM calls. - Note that asynchronous methods do not block until completion, so you will need to fetch the results yourself later. + Use this method if prompt-response pairs are streaming in, and you want to return TLM scores + for each pair as quickly as possible, without the TLM scoring of any one pair blocking the scoring of the others. + Asynchronous methods do not block until completion, so you will need to fetch the results yourself. Args: prompt (str | Sequence[str]): prompt (or list of prompts) for the TLM to evaluate