Text
Modify
EnhanceWithKeywords

Name

enhanceWithKeywords

Description

Takes a simple string (text) and outputs a complex prompt for text prediction models (e.g. GPT-3) that will output a list of keywords that are relevant to the input text.

Example

index.ts

import { enhanceWithKeywords } from '@aigur/client';
//...
flow.node(enhanceWithKeywords, () => ({
text: 'cars'
})) // --> {text: `Write a maximum of 8 keywords in a csv list that describes the following
// Title: Colonial-style home
// Description: traditional, classic, historical, timeless, elegant, regal, grand, spacious
//
// Title: High-end penthouse apartment
// Description: upscale, contemporary, modern, stylish, designer, elite, high-rise, rooftop
//
// Title: cars
// Description: `}
//`}

Input

Property Type Required Description Default Value
text string Yes The text you want a list of keywords for
amount number No Limit number of keywords in the result 8

Output

Property Type
text string