This repository has been archived by the owner on Jun 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Prompt Injection
OGIOS edited this page Oct 1, 2023
·
3 revisions
There's the official custom prompt api for the models, thus no needed for this.
The prompt style for each model is different from one another, collected from huggingface.
-
PromptFalcon
fortiiuae/falcon-180B-chat
-
PromptLlama
forcodellama/CodeLlama-34b-Instruct-hf
&meta-llama/Llama-2-70b-chat-hf
Better off to just use it at the beginning of each conversation
import it with:
from hugchat_api.core import ListBots
ListBots.PromptFalcon # or
ListBots.PromptLlama
Create and send to Bot.chat()
prompt = ListBots.PromptFalcon(system="...", user="...")
message: Message = bot.chat(text=prompt, ...)
...
-
/new
to create a new conversation - type
/pro
- input system prompt
- input user prompt
Feel free to ask any questions or share me with your thoughts!