Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
add some chains (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchase17 authored Jan 27, 2023
1 parent 1cc3205 commit c40bf9c
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
13 changes: 13 additions & 0 deletions chains/hello-world/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Hello World

## Description

A simple LLMChain that takes in a topic and generates a joke about it.

## Chain type

LLMChain

## Input Variables

- `topic`: topic to generate a joke about
28 changes: 28 additions & 0 deletions chains/hello-world/chain.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"memory": null,
"verbose": false,
"prompt": {
"input_variables": [
"topic"
],
"output_parser": null,
"template": "Tell me a joke about {topic}:",
"template_format": "f-string",
"_type": "prompt"
},
"llm": {
"model_name": "text-davinci-003",
"temperature": 0.9,
"max_tokens": 256,
"top_p": 1,
"frequency_penalty": 0,
"presence_penalty": 0,
"n": 1,
"best_of": 1,
"request_timeout": null,
"logit_bias": {},
"_type": "openai"
},
"output_key": "text",
"_type": "llm_chain"
}
7 changes: 7 additions & 0 deletions chains/readme_template
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# {Title}

## Description

## Chain type

## Input Variables

0 comments on commit c40bf9c

Please sign in to comment.