Utils
labridge.interact.collect.utils
¶
labridge.interact.collect.utils.acondition_analyze(llm, prompt, condition_true_word, **kwargs)
async
¶
Asynchronously choose from two conditions according to the input.
PARAMETER | DESCRIPTION |
---|---|
llm |
The used LLM.
TYPE:
|
prompt |
The prompt template.
TYPE:
|
condition_true_word |
The word that the LLM is supposed to output in the True condition.
TYPE:
|
**kwargs |
DEFAULT:
|
RETURNS | DESCRIPTION |
---|---|
bool
|
True condition or False.
TYPE:
|
Source code in labridge\interact\collect\utils.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
labridge.interact.collect.utils.condition_analyze(llm, prompt, condition_true_word, **kwargs)
¶
Choose from two conditions according to the input.
PARAMETER | DESCRIPTION |
---|---|
llm |
The used LLM.
TYPE:
|
prompt |
The prompt template.
TYPE:
|
condition_true_word |
The word that the LLM is supposed to output in the True condition.
TYPE:
|
**kwargs |
DEFAULT:
|
RETURNS | DESCRIPTION |
---|---|
bool
|
True condition or False.
TYPE:
|
Source code in labridge\interact\collect\utils.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|