Currently there is no way of easily adding system messages other than changing the transformers.py
What the PR does
This PR creates a simple optional way of adding a system message by adding an optional system field in the Document class, and can be used like this document.parse(content=content, system=system) using the parse function.
Testing
The feature has been tested by giving a system message and evaluating the outputs.
The problem
Currently there is no way of easily adding system messages other than changing the transformers.py
What the PR does
This PR creates a simple optional way of adding a system message by adding an optional
system
field in the Document class, and can be used like thisdocument.parse(content=content, system=system)
using the parse function.Testing
The feature has been tested by giving a system message and evaluating the outputs.