Prompts are essential when it comes to custom assistants. You can create a tailored voice for your brand or shape the LLM’s response by using them. Leicht uses ramptix/preprompted-data as the prompt index to download prompts on-demand — you can find prompts across various topics there.Documentation Index
Fetch the complete documentation index at: https://awdev.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Use A Prompt
- Check out the Wiki of
preprompted-dataand copy the name of your desired prompt. We’ll use the namebasicfor the sake of simplicity. - From
leicht.prompts, we’ll import theget_prompt()function to fetch a prompt and cache it.
Prompts With Variables
Some prompts, for instance,awesome/character which requires two variables, support inserting texts.
awesome/character requires:
{character}– The character name.{series}– The series featuring the character.
Community Prompts
Community Prompts from Discussions can be accessed withcommunity/<discussion id>.
For example, if we want to use RapperGPT – #2 by the community:
Usage With Assistant
Theleicht.prompts module works seamlessly with the Assistant API. Provide a valid prompt specification and Leicht will fetch the prompt directly.