Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 527 Bytes

CLASSIFICATION.md

File metadata and controls

41 lines (31 loc) · 527 Bytes

Classification

Code:

prompt_template = """For the following list of animals:

- Dog
- Cat
- Elephant
- Dolphin
- Shark
- Whale
- Snake

Can you classify and list by animal type?
"""

classification_func = kernel.create_semantic_function(prompt_template, 
                            max_tokens=common.get_max_tokens('short'), 
                            temperature=0.3)

print(classification_func())

Output:

Mammals:
- Dog
- Cat
- Elephant
- Dolphin
- Whale

Fish:
- Shark

Reptiles:
- Snake