Skip to content

Library of prompts/contexts that allows to enhance GPT models responses without the involvement of the user

License

Notifications You must be signed in to change notification settings

Gafar27/Smarty-GPT

 
 

Repository files navigation

Smarty-GPT(4): wrapper of prompts/contexts (also GPT-4!)

This is a simple wrapper that introduces any imaginable complex context to each question submitted to Open AI API. The main goal is to enhance the accuracy obtained in its answers in a TRANSPARENT way to end users.

This idea arose in the context of a health-related experiment lead by CiTIUS.(more coming soon).

Contexts / Prompts

We support three type of prompts from the moment:

  • Manual prompts: these prompts are hard-coded and were the first included in this project.
  • Awesome Chat GPT prompts: our system also supports this huge dataset in a transparent manner.
  • Custom prompts: any user can add custom prompts through a file.

Installation

pip install smarty-gpt==1.0.7

Example

from smartygpt import Wrapper
wrapper = Wrapper()
wrapper.wrapper("Can ibuprofen worsen COVID-19?", "INSERT-YOUR-OPENAI-KEY-HERE", "doctor") # manual prompt
wrapper.wrapper("Describe the attack of Pearl Harbor.", "INSERT-YOUR-OPENAI-KEY-HERE", "custom-perplexity") # custom prompt
wrapper.wrapper("Rap about Eminem", "INSERT-YOUR-OPENAI-KEY-HERE", "Rapper") # Awesome Chat GPT prompts 

Prompts / Contexts

More features/models are about to come! Feel free to make a PR, open an issue or to contact me at [email protected]

Disclaimer

The software is provided "as is" and "with all faults" without warranties of any kind, either express or implied, including, but not limited to, the implied warranties of merchantability, fitness for a particular purpose and non-infringement. No warranty is provided that the software will be free from defects or that operation of the software will be uninterrupted. Your use of the software and any other material or services downloaded or made available to you through the software is at your own discretion and risk, and you are solely responsible for any potential damage resulting from their use.

About

Library of prompts/contexts that allows to enhance GPT models responses without the involvement of the user

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 51.6%
  • Python 48.4%