Simplified Chinese | English
Change the world, even a little bit.
Since OpenAI launched a new AI revolution, many players at home and abroad have entered the market to receive the baptism of the times, and LLM-related technologies have exploded for a while, and prompt engineering (prompt engineering) is among them.
It's like a "language game" designed for Big Language Model (LLM). Through this "game", we can guide LLM more effectively to deal with problems. Before the arrival of real general intelligence, based on the current LLM paradigm, we must give full play to the advantages of LLM, Prompt design is becoming more and more complicated, and further the code of Prompt, modularization will become more and more obvious. At the same time, writing Prompt will become the basic skill of people in the AI era.
Based on this, I have conceived and created ssprompt, hoping that everyone can use Prompt and enjoy the dividends of the AI era.
Ssprompt requires Python 3.10+
Supports multi-platform use to meet the majority of Prompt Engineers
pip install ssprompt
curl -sSL https://raw.githubusercontent.com/ptonlix/ssprompt/main/install.py | python3 -
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/ptonlix/ssprompt/main/install.py -UseBasicParsing).Content | py -
ssprompt is a Prompt distribution management tool that defines a set of Prompt distribution rules to support creating Prompt projects and pulling project files corresponding to Prompt on Prompt Hub to local projects.
Note: The following is the content introduction of the first version of ssprompt in 0.5.0. The project is still being improved. If there are any omissions or shortcomings, please forgive me for understanding. Thank you~
For more details of command parameters, please use ssprompt [command] -h
to learn more about it
ssprompt constrains the management of Prompt distribution rules and content by defining the Meta file of the propt project
ssprompt About propt Define four types of Prompt
You can generate the corresponding Prompt as needed and upload it to PromptHub for distribution.
metafile named after the Prompt project name, such as propt_project.yaml, is the key to ssprompt managing Prompt distribution
Note: The above types are combined with reference to langchain and haystack.
# Prompt工程基础信息
meta :
name : open #工程名称
author :
- ptonlix <[email protected]>
description : " "
license : MIT # Prompt工程遵循的协议
llm : # Prompt支持的LLM模型
- gpt-3.5-turbo
readme_format : md # Readme文件格式
tag : # Prompt工程相关类型领域,如question-generation common为公共领域
- common
version : 0.1.0 #版本号
# Text类型的Prompt
text_prompt :
dirname : text #目录名称, 默认为text
# Json类型的Prompt
json_prompt :
dirname : json #目录名称,默认为json
list : #支持多个json类型子工程
- dependencies :
langchain : 0.0.266 # json解析依赖的三方库版本号,如langchain等
name : example #子工程名,对应生成工程目录名
# Yaml类型的prompt
yaml_prompt :
dirname : yaml #目录名称,默认为yaml
list : #支持多个yaml类型子工程
- dependencies :
langchain : 0.0.266 # yaml解析依赖的三方库版本号,如langchain等
name : example #子工程名,对应生成工程目录名
# Python类型的Prompt
python_prompt : #目录名称,默认为yaml
dirname : python #目录名称,默认为yaml
list : #支持多个yaml类型子工程
- dependencies :
langchain : 0.0.266 # Python库引用的三方库版本号,如langchain等
name : example #子工程名,对应生成工程目录名
The current version supports three version dependency rules
Currently, the Prompt project generated by ssprompt relies on Git management. The Prompt project is uploaded to the Git repository through Git so that ssprompt can pull references
Current default PromptHub is hosted in GitHub ptonlix/PromptHub
At present, the Prompt project of PromptHub is still under construction?
More Prompt projects will be collected and built in the future and published to our PromptHub ☁️
? Everyone is welcome to upload their own Prompt to PromptHub to build an open source Prompt ecosystem
Due to the current GitHub API request access restrictions, authentication access is not used, and it will limit access to only 60 times per hour, resulting in 403 restricted requests when frequently pulling projects with ssprompt
It is recommended to set GitHub Personal access tokens to environment variables when using ssprompt
export GITHUB_ACCESS_KEY= ` Your GitHub Token `
? Scan the code to contact the author. If you are also interested in this project, please join the ssprompt project group to participate in the discussion and exchange.
Everyone is welcome to contribute and build ssprompt together, you can do anything useful