Name | prompt4all-liteon JSON |
Version |
0.0.3
JSON |
| download |
home_page | |
Summary | Prompt is all you need |
upload_time | 2023-07-12 03:46:25 |
maintainer | |
docs_url | None |
author | Allan Yiin |
requires_python | >=3.7 |
license | MIT |
keywords |
chatgpt
gpt4
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Prompt is all you need !! #
這個專案是我基於openai api將我的一些想法落實的實驗場
一切都會環繞在如何協助人們更有效率的運用prompt來實現複雜的任務
![prompt](prompt4al_liteon/images/ui_1.png)
### 目前這個專案中已經實現了: ###
* 暗黑模式 (new)
* 將與ChatGPT交互模式抽象化(api/base_api/GptBaseApi)
* streaming 對話
* 自動繼續(當因為字數因素中斷,會自動背景重發繼續,然後將回傳結果接在前面中斷的位置,使用者將完全沒有中斷的感覺,這是我開始這專案時最想完成的功能)
* 歷史對話紀錄長文自動摘要(以縮減tokens數)
* 超參數調整
* ChatGPT inside的傳統自然語言處理任務
* ChatGPT 與Dall.E2協作
* 語氣改寫
* 長文本滾動式摘要以及平行分塊摘要
* ~~coming soon 會議錄音自動整理!!!!
![prompt](prompt4al_liteon/images/dark1.png)
![prompt](prompt4al_liteon/images/ui_2.png)
![prompt](prompt4al_liteon/images/dalle2_1.png)
![prompt](prompt4al_liteon/images/rewrite1.png)
![prompt](prompt4al_liteon/images/blocks_summary.png)
### 目前這個專案正在實現: ###
* 更彈性的上下文管理機制,目前預計會有
* [@PROMPT] 一般指令
* [@GLOBAL] 全局指令(以append形式累加)
* [@SKIP] 跳脫上文(只要全局指令,無須上文)
* [@SANDBOX] 沙箱隔絕(連全局指令都不需要)
* [@EXPLAIN] 解釋上文
* [@OVERRIDE] 覆寫全局
* 更多進階的商業應用場景
### 目前這個專案未來希望實現: ###
* 儲存思維鏈以及私有知識
* 結合更多外部api
### 如何開始使用: ###
透過git將本專案下載至本機,並安裝相關requirements
git clone https://github.com/AllanYiin/Prompt_Is_All_You_Need
cd Prompt_Is_All_You_Need
pip install -r requirements.txt
pip install -e .
或者是直接利用以下語法安裝:
pip install prompt4all --upgrade
請依照指示將金鑰值賦值至環境變數OPENAI_API_KEY
執行以下語法即可啟動
python -m prompt4all.app
### 金鑰值賦值方法: ###
如果您是在windows平台:
請在系統->進階系統設定->環境變數->使用者變數
中點選「新增」,在變數名稱中輸入:“OPENAI_API_KEY”
在值的部分輸入您的OpenAI API密鑰
需要重開機才能有效抓取到金鑰值
![prompt](prompt4all/images/enviorvariables.png)
如果您是在linux平台:
輸入以下命令:export OPENAI_API_KEY=your_api_key_here 將“your_api_key_here”替換為您的OpenAI API密鑰
Raw data
{
"_id": null,
"home_page": "",
"name": "prompt4all-liteon",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "chatgpt,gpt4",
"author": "Allan Yiin",
"author_email": "allanyiin.ai@gmail.com",
"download_url": "https://test.pypi.org/project/prompt4all_liteon",
"platform": null,
"description": "# Prompt is all you need !! # \r\n\r\n\u9019\u500b\u5c08\u6848\u662f\u6211\u57fa\u65bcopenai api\u5c07\u6211\u7684\u4e00\u4e9b\u60f3\u6cd5\u843d\u5be6\u7684\u5be6\u9a57\u5834\r\n\u4e00\u5207\u90fd\u6703\u74b0\u7e5e\u5728\u5982\u4f55\u5354\u52a9\u4eba\u5011\u66f4\u6709\u6548\u7387\u7684\u904b\u7528prompt\u4f86\u5be6\u73fe\u8907\u96dc\u7684\u4efb\u52d9\r\n![prompt](prompt4al_liteon/images/ui_1.png)\r\n\r\n### \u76ee\u524d\u9019\u500b\u5c08\u6848\u4e2d\u5df2\u7d93\u5be6\u73fe\u4e86: ###\r\n* \u6697\u9ed1\u6a21\u5f0f (new)\r\n* \u5c07\u8207ChatGPT\u4ea4\u4e92\u6a21\u5f0f\u62bd\u8c61\u5316(api/base_api/GptBaseApi)\r\n* streaming \u5c0d\u8a71\r\n* \u81ea\u52d5\u7e7c\u7e8c(\u7576\u56e0\u70ba\u5b57\u6578\u56e0\u7d20\u4e2d\u65b7\uff0c\u6703\u81ea\u52d5\u80cc\u666f\u91cd\u767c\u7e7c\u7e8c\uff0c\u7136\u5f8c\u5c07\u56de\u50b3\u7d50\u679c\u63a5\u5728\u524d\u9762\u4e2d\u65b7\u7684\u4f4d\u7f6e\uff0c\u4f7f\u7528\u8005\u5c07\u5b8c\u5168\u6c92\u6709\u4e2d\u65b7\u7684\u611f\u89ba\uff0c\u9019\u662f\u6211\u958b\u59cb\u9019\u5c08\u6848\u6642\u6700\u60f3\u5b8c\u6210\u7684\u529f\u80fd)\r\n* \u6b77\u53f2\u5c0d\u8a71\u7d00\u9304\u9577\u6587\u81ea\u52d5\u6458\u8981(\u4ee5\u7e2e\u6e1btokens\u6578)\r\n* \u8d85\u53c3\u6578\u8abf\u6574\r\n* ChatGPT inside\u7684\u50b3\u7d71\u81ea\u7136\u8a9e\u8a00\u8655\u7406\u4efb\u52d9\r\n* ChatGPT \u8207Dall.E2\u5354\u4f5c\r\n* \u8a9e\u6c23\u6539\u5beb\r\n* \u9577\u6587\u672c\u6efe\u52d5\u5f0f\u6458\u8981\u4ee5\u53ca\u5e73\u884c\u5206\u584a\u6458\u8981\r\n* ~~coming soon \u6703\u8b70\u9304\u97f3\u81ea\u52d5\u6574\u7406!!!!\r\n![prompt](prompt4al_liteon/images/dark1.png)\r\n![prompt](prompt4al_liteon/images/ui_2.png)\r\n![prompt](prompt4al_liteon/images/dalle2_1.png)\r\n![prompt](prompt4al_liteon/images/rewrite1.png)\r\n![prompt](prompt4al_liteon/images/blocks_summary.png)\r\n\r\n### \u76ee\u524d\u9019\u500b\u5c08\u6848\u6b63\u5728\u5be6\u73fe: ###\r\n* \u66f4\u5f48\u6027\u7684\u4e0a\u4e0b\u6587\u7ba1\u7406\u6a5f\u5236\uff0c\u76ee\u524d\u9810\u8a08\u6703\u6709\r\n * [@PROMPT] \u4e00\u822c\u6307\u4ee4\r\n * [@GLOBAL] \u5168\u5c40\u6307\u4ee4(\u4ee5append\u5f62\u5f0f\u7d2f\u52a0)\r\n * [@SKIP] \u8df3\u812b\u4e0a\u6587(\u53ea\u8981\u5168\u5c40\u6307\u4ee4\uff0c\u7121\u9808\u4e0a\u6587)\r\n * [@SANDBOX] \u6c99\u7bb1\u9694\u7d55(\u9023\u5168\u5c40\u6307\u4ee4\u90fd\u4e0d\u9700\u8981)\r\n * [@EXPLAIN] \u89e3\u91cb\u4e0a\u6587\r\n * [@OVERRIDE] \u8986\u5beb\u5168\u5c40\r\n* \u66f4\u591a\u9032\u968e\u7684\u5546\u696d\u61c9\u7528\u5834\u666f\r\n\r\n### \u76ee\u524d\u9019\u500b\u5c08\u6848\u672a\u4f86\u5e0c\u671b\u5be6\u73fe: ###\r\n* \u5132\u5b58\u601d\u7dad\u93c8\u4ee5\u53ca\u79c1\u6709\u77e5\u8b58\r\n* \u7d50\u5408\u66f4\u591a\u5916\u90e8api\r\n\r\n### \u5982\u4f55\u958b\u59cb\u4f7f\u7528: ###\r\n\u900f\u904egit\u5c07\u672c\u5c08\u6848\u4e0b\u8f09\u81f3\u672c\u6a5f\uff0c\u4e26\u5b89\u88dd\u76f8\u95dcrequirements\r\n\r\n git clone https://github.com/AllanYiin/Prompt_Is_All_You_Need\r\n cd Prompt_Is_All_You_Need\r\n pip install -r requirements.txt\r\n pip install -e .\r\n\r\n\u6216\u8005\u662f\u76f4\u63a5\u5229\u7528\u4ee5\u4e0b\u8a9e\u6cd5\u5b89\u88dd:\r\n\r\n pip install prompt4all --upgrade\r\n\r\n\r\n\u8acb\u4f9d\u7167\u6307\u793a\u5c07\u91d1\u9470\u503c\u8ce6\u503c\u81f3\u74b0\u5883\u8b8a\u6578OPENAI_API_KEY\r\n\u57f7\u884c\u4ee5\u4e0b\u8a9e\u6cd5\u5373\u53ef\u555f\u52d5\r\n\r\n python -m prompt4all.app\r\n\r\n\r\n### \u91d1\u9470\u503c\u8ce6\u503c\u65b9\u6cd5: ###\r\n\u5982\u679c\u60a8\u662f\u5728windows\u5e73\u53f0:\r\n\u8acb\u5728\u7cfb\u7d71->\u9032\u968e\u7cfb\u7d71\u8a2d\u5b9a->\u74b0\u5883\u8b8a\u6578->\u4f7f\u7528\u8005\u8b8a\u6578\r\n\u4e2d\u9ede\u9078\u300c\u65b0\u589e\u300d\uff0c\u5728\u8b8a\u6578\u540d\u7a31\u4e2d\u8f38\u5165:\u201cOPENAI_API_KEY\u201d\r\n\u5728\u503c\u7684\u90e8\u5206\u8f38\u5165\u60a8\u7684OpenAI API\u5bc6\u9470\r\n\u9700\u8981\u91cd\u958b\u6a5f\u624d\u80fd\u6709\u6548\u6293\u53d6\u5230\u91d1\u9470\u503c\r\n![prompt](prompt4all/images/enviorvariables.png)\r\n\r\n\u5982\u679c\u60a8\u662f\u5728linux\u5e73\u53f0:\r\n\u8f38\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1aexport OPENAI_API_KEY=your_api_key_here \u5c07\u201cyour_api_key_here\u201d\u66ff\u63db\u70ba\u60a8\u7684OpenAI API\u5bc6\u9470\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Prompt is all you need",
"version": "0.0.3",
"project_urls": {
"Download": "https://test.pypi.org/project/prompt4all_liteon"
},
"split_keywords": [
"chatgpt",
"gpt4"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bc0a60cd30156e8dc1f7d24247fa4bf1c54eda708fc0a9d58ff39c7696357d13",
"md5": "c0e5233dc2d080dbabdbefb290cb0a37",
"sha256": "60c3c045444809fb1d51a34d3f0a17cc0ceb1f70ed72280c3881cf0c4f1a579a"
},
"downloads": -1,
"filename": "prompt4all_liteon-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c0e5233dc2d080dbabdbefb290cb0a37",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 43052,
"upload_time": "2023-07-12T03:46:25",
"upload_time_iso_8601": "2023-07-12T03:46:25.797642Z",
"url": "https://files.pythonhosted.org/packages/bc/0a/60cd30156e8dc1f7d24247fa4bf1c54eda708fc0a9d58ff39c7696357d13/prompt4all_liteon-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-12 03:46:25",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "prompt4all-liteon"
}