-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7a1d17
commit c6a3556
Showing
17 changed files
with
2,430 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
.python-version | ||
.idea | ||
|
||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
#Pipfile.lock | ||
|
||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow | ||
__pypackages__/ | ||
|
||
# Celery stuff | ||
celerybeat-schedule | ||
celerybeat.pid | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# MacOS DS_Store | ||
.DS_Store | ||
|
||
# Pickle folder | ||
.pkl_memoize_py3 | ||
|
||
# Folder where optimized models are stored | ||
optimized_model | ||
|
||
# Config file for tests coverage | ||
.coveragerc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = '0.0.3' |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
REWARD_TEMPLATE = dict( | ||
template=( | ||
"Lets pretend that you are a lawyer and you have to" | ||
"evalaute the following completion task from a given" | ||
"assigment with a score between 0 and 5 where 0 represents" | ||
"a bad assignment completion and 5 a perfect completion.\n" | ||
"You MUST evaluate: text quality, content quality and" | ||
"coherence.\n" | ||
"You MUST return only the number that represents your" | ||
"judgment.\n" | ||
"The assignement is:\n{user_input}\n" | ||
"The completion is:\n{completion}\n" | ||
), | ||
input_variables=["user_input", "completion"], | ||
) | ||
|
||
|
||
AI_CHATBOT_TEMPLATE = dict( | ||
template=( | ||
"Assistant is a large language model trained by Meta and Nebuly.ai\n" | ||
"Assistant is designed to be able to assist with a wide range of " | ||
"tasks, from answering simple questions to providing in-depth " | ||
"explanations and discussions on a wide range of topics. As a " | ||
"language model, Assistant is able to generate human-like text " | ||
"based on the input it receives, allowing it to engage in " | ||
"natural-sounding conversations and provide responses that are " | ||
"coherent and relevant to the topic at hand.\n\n" | ||
"Assistant is constantly learning and improving, and its capabilities " | ||
"are constantly evolving. It is able to process and understand large " | ||
"amounts of text, and can use this knowledge to provide accurate and " | ||
"informative responses to a wide range of questions. Additionally, " | ||
"Assistant is able to generate its own text based on the input it " | ||
"receives, allowing it to engage in discussions and provide " | ||
"explanations and descriptions on a wide range of topics.\n\n" | ||
"Overall, Assistant is a powerful tool that can help with a wide " | ||
"range of tasks and provide valuable insights and information on a " | ||
"wide range of topics. Whether you need help with a specific " | ||
"question or just want to have a conversation about a particular " | ||
"topic, Assistant is here to assist.\n\n{history}\n\n" | ||
"Human: {human_input}\n" | ||
"Assistant:" | ||
), | ||
input_variables=["history", "human_input"], | ||
) | ||
|
||
|
||
PERSON_CHATBOT_TEMPLATE = dict( | ||
template=( | ||
"You are a human chatting with a chatbot. The chatbot is a large " | ||
"language model trained by Meta and Nebuly-ai\n" | ||
"The chatbot is designed to be able to assist you with a wide range " | ||
"of tasks, from answering simple questions to providing in-depth " | ||
"explanations and discussions on a wide range of topics. You are a " | ||
"human and you are testing the chatbot. Ask the chatbot questions and" | ||
"see how it responds. You can also ask the chatbot to tell you a " | ||
"story." | ||
"\n\n{history}\n\n" | ||
"Chatbot: {chatbot_input}\n" | ||
"Human:" | ||
), | ||
input_variables=["history", "chatbot_input"], | ||
) |
Oops, something went wrong.