Home / File/ few_shot_prompt.json — langchain Source File

few_shot_prompt.json — langchain Source File

Architecture documentation for few_shot_prompt.json, a json file in the langchain codebase.

Entity Profile

Source Code

{
    "_type": "few_shot",
    "input_variables": ["adjective"],
    "prefix": "Write antonyms for the following words.",
    "example_prompt": {
        "_type": "prompt",
        "input_variables": ["input", "output"],
        "template": "Input: {input}\nOutput: {output}"
    },
    "examples": "examples.json",
    "suffix": "Input: {adjective}\nOutput:"
}   

Frequently Asked Questions

What does few_shot_prompt.json do?
few_shot_prompt.json is a source file in the langchain codebase, written in json.
Where is few_shot_prompt.json in the architecture?
few_shot_prompt.json is located at libs/core/tests/unit_tests/examples/few_shot_prompt.json (directory: libs/core/tests/unit_tests/examples).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free