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

Fix Document & Expose StringPromptTemplate as a custom-prompt-template. #1753

Merged

Conversation

hitoshi44
Copy link
Contributor

@hitoshi44 hitoshi44 commented Mar 18, 2023

Regarding this issue, the code in the document Creating a custom prompt template is no longer functional and outdated.

To address this, I have made the following changes:

  1. Updated the guide in the document to use StringPromptTemplate instead of BasePromptTemplate.
  2. Exposed StringPromptTemplate in prompts/__init__.py for easier importing.

Copy link
Contributor

@hwchase17 hwchase17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@hwchase17 hwchase17 merged commit 3cf493b into langchain-ai:master Mar 19, 2023
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.

None yet

2 participants