langchain/docs/modules/prompts/examples
Jason Gill 1989e7d4c2
Update examples to prevent confusing missing _type warning (#1391)
The YAML and JSON examples of prompt serialization now give a strange
`No '_type' key found, defaulting to 'prompt'` message when you try to
run them yourself or copy the format of the files. The reason for this
harmless warning is that the _type key was not in the config files,
which means they are parsed as a standard prompt.

This could be confusing to new users (like it was confusing to me after
upgrading from 0.0.85 to 0.0.86+ for my few_shot prompts that needed a
_type added to the example_prompt config), so this update includes the
_type key just for clarity.

Obviously this is not critical as the warning is harmless, but it could
be confusing to track down or be interpreted as an error by a new user,
so this update should resolve that.
2023-03-02 07:39:57 -08:00
..
custom_example_selector.md Minor grammatical fixes (#1325) 2023-03-01 21:18:09 -08:00
custom_prompt_template.ipynb fix docs custom prompt template (#917) 2023-02-06 20:29:48 -08:00
example_prompt.json Update examples to prevent confusing missing _type warning (#1391) 2023-03-02 07:39:57 -08:00
example_selectors.ipynb chroma docs (#1012) 2023-02-12 23:02:01 -08:00
examples.json Docs refactor (#480) 2023-01-02 08:24:09 -08:00
examples.yaml Harrison/few shot yaml (#682) 2023-01-21 16:08:03 -08:00
few_shot_examples.ipynb chroma docs (#1012) 2023-02-12 23:02:01 -08:00
few_shot_prompt_example_prompt.json Docs refactor (#480) 2023-01-02 08:24:09 -08:00
few_shot_prompt_examples_in.json Update examples to prevent confusing missing _type warning (#1391) 2023-03-02 07:39:57 -08:00
few_shot_prompt_yaml_examples.yaml Update examples to prevent confusing missing _type warning (#1391) 2023-03-02 07:39:57 -08:00
few_shot_prompt.json Update examples to prevent confusing missing _type warning (#1391) 2023-03-02 07:39:57 -08:00
few_shot_prompt.yaml Update examples to prevent confusing missing _type warning (#1391) 2023-03-02 07:39:57 -08:00
partial.ipynb partial variables (#1308) 2023-02-28 08:40:35 -08:00
prompt_management.ipynb chroma docs (#1012) 2023-02-12 23:02:01 -08:00
prompt_serialization.ipynb Update examples to prevent confusing missing _type warning (#1391) 2023-03-02 07:39:57 -08:00
simple_prompt_with_template_file.json Update examples to prevent confusing missing _type warning (#1391) 2023-03-02 07:39:57 -08:00
simple_prompt.json Update examples to prevent confusing missing _type warning (#1391) 2023-03-02 07:39:57 -08:00
simple_prompt.yaml Update examples to prevent confusing missing _type warning (#1391) 2023-03-02 07:39:57 -08:00
simple_template.txt Docs refactor (#480) 2023-01-02 08:24:09 -08:00