A is to B as C is to D relationships
These are examples of a is to b as c is to d relationships
--
Example: cat, kitten
Input: dog
Output: puppy.
Cat is to kitten as dog is to puppy.
--
Example: big, small
Input: fast, slow
Output: slow.
Big is to fast as small is to slow.
--
Example: breeze, wind
Input: stream
Output: current
Breeze is to wind as stream is to current.
--
Example: guitar, music
Input: programmer
Output:
Output: code.
Guitar is to music as programmer is to code.
import cohereco = cohere.Client('{apiKey}')response = co.generate(model='',prompt='These are examples of a is to b as c is to d relationships \n\n-- \nExample: cat, kitten \nInput: dog \nOutput: puppy. \nCat is to kitten as dog is to puppy. \n\n-- \nExample: big, small \nInput: fast, slow \nOutput: slow. \nBig is to fast as small is to slow. \n\n-- \nExample: breeze, wind \nInput: stream \nOutput: current \nBreeze is to wind as stream is to current. \n\n-- \nExample: guitar, music \nInput: programmer \nOutput:',max_tokens=50,temperature=0.9,k=0,p=1,frequency_penalty=0,presence_penalty=0,stop_sequences=[],return_likelihoods='NONE',language='en')print('Prediction: {}'.format(response.generations[0].text))
model_size | xlarge |
frequency_penalty | 0 |
k | 0 |
max_tokens | 200 |
p | 1 |
temperature | 0.9 |