Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harrison/few shot yaml #682

Merged
merged 2 commits into from
Jan 22, 2023
Merged

Harrison/few shot yaml #682

merged 2 commits into from
Jan 22, 2023

Conversation

hwchase17
Copy link
Contributor

No description provided.

vintrocode and others added 2 commits January 21, 2023 15:56
The examples I want to load are long-ish passages with plenty of
characters that weren't working with JSON formatting, so I added support
for loading examples in a few-shot prompt template in yaml format.

I also added examples to the prompt serialization section of the docs to
show people how to do this. The YAML formatting is important so that it
gets loaded correctly as a list for the FewShotPromptTemplate to be
happy.

I was having env issues so I didn't run _all_ of the contributing tests,
but I don't think this is a huge update. It just made my QOL better -- I
want my non-technical colleagues to be able to provide examples that I
can select dynamically and YAML seemed like a better copy+paste option
to teach them.
@hwchase17 hwchase17 merged commit e45f7e4 into master Jan 22, 2023
@hwchase17 hwchase17 deleted the harrison/few-shot-yaml branch January 22, 2023 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants