Company
Date Published
Author
-
Word count
402
Language
English
Hacker News points
None

Summary

The introduction of a PromptSelector concept aims to address the challenges faced with default prompt templates not working uniformly across different models, particularly highlighted after OpenAI's release of a new ChatGPT API. This API required new abstractions and led to issues with old prompt templates, which performed inconsistently in chat settings compared to GPT-3. The PromptSelector allows for the automatic selection of an appropriate PromptTemplate based on the model being used, offering a more seamless "Just Works" functionality. This approach is designed to accommodate different prompt requirements for various models, including ChatModels and traditional models, as well as different model providers and versions. The transition to using PromptSelectors will occur gradually, starting with popular chains, and community feedback is encouraged to enhance this development.