mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-30 00:30:09 +00:00
* added instruction_prompt and update defaults * Change back max_tokens * Code formatting * Starting to update instruction_prompt to be a PromptTemplate * Using PromptTemplate in OpenAIAnswerGenerator * Removed hardcoded value * pylint and make examples and examples_context optional prompt parameters * Added new test for when prompt length goes past max token limit * Improve doc strings. * Make "text-davinci-003" the new default model * Renaming variable to prompt_template and name to question-answering-with-examples * Reduced repetitive code. * Added some comments to explain key logic for future debuggers * Update docs for max_tokens and increase defaul * Updating variable name to prompt_template and docs. * Updated test and handled Answer case where no documents are used. * Slight update to docs. * Adding more doc strings * lg updates * Blackify --------- Co-authored-by: Malte Pietsch <malte.pietsch@deepset.ai> Co-authored-by: agnieszka-m <amarzec13@gmail.com>