{{Guidance-ai}} API Flashcards

1
Q

{{Guidance}}

A

Guidance enables you to control modern language models more effectively and efficiently than traditional prompting or chaining. Guidance programs allow you to interleave generation, prompting, and logical control into a single continuous flow matching how the language model actually processes the text.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

guidance.library.add(*args)

A

Add the given variables together.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

guidance.library.assistant([hidden,…])

A

A chat role block for the ‘assistant’ role.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

guidance.library.await_(name[,consume,…])

A

Awaits a variable by returning its value and then deleting it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

guidance.library.block([name,hidden,…])

A

Generic block-level element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

guidance.library.break_()

A

Breaks out of the current loop.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

guidance.library.each(list[,hidden,…])

A

Iterate over a list and execute a block for each item.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

guidance.library.equal(*args)

A

Check that all arguments are equal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

guidance.library.gen([name,stop,…])

A

Use the LLM to generate a completion.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

guidance.library.geneach(list_name[,stop,…])

A

Generate a potentially variable length list of items using the LLM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

guidance.library.if_(value,*[,invert,…])

A

Standard if/else statement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

guidance.library.role(role_name[,hidden,…])

A

A chat role block.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

guidance.library.select([variable_name,…])

A

Select a value from a list of choices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

guidance.library.set(name[,value,hidden,…])

A

Set the value of a variable or set of variables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

guidance.library.shell(command[,safe,…])

A

Execute a shell command on the local machine (with user confirmation by default).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

guidance.library.strip(string)

A

Strip whitespace from the beginning and end of the given string.

17
Q

guidance.library.subtract(minuend,subtrahend)

A

Subtract the second variable from the first.

18
Q

guidance.library.system([hidden,…])

A

A chat role block for the ‘system’ role.

19
Q

guidance.library.unless(value[,_parser_context])

A

[blank in the documentation]

20
Q

guidance.library.user([hidden,_parser_context])

A

A chat role block for the ‘user’ role.

21
Q

guidance.llms.OpenAI([model,caching,…])

A

[blank in the documentation]

22
Q

guidance.llms.Transformers([model,…])

A

A HuggingFace transformers language model with Guidance support.

23
Q

guidance.llms.transformers.LLaMA([model,…])

A

A HuggingFace transformers version of the LLaMA language model with Guidance support.

24
Q

guidance.llms.transformers.MPT([model,…])

A

A HuggingFace transformers version of the MosaicML MPT language model with Guidance support.

25
Q

guidance.llms.transformers.Vicuna([model,…])

A

A HuggingFace transformers version of the Vicuna language model with Guidance support.

26
Q

guidance.llms.transformers.Koala([model,…])

A

A HuggingFace transformers version of the Koala language model with Guidance support.