Prompt is all you need
Project description
Prompt is all you need !!
這個專案是我基於openai api將我的一些想法落實的實驗場 一切都會環繞在如何協助人們更有效率的運用prompt來實現複雜的任務
目前這個專案中已經實現了:
- 暗黑模式 (new)
- 將與ChatGPT交互模式抽象化(api/base_api/GptBaseApi)
- streaming 對話
- 自動繼續(當因為字數因素中斷,會自動背景重發繼續,然後將回傳結果接在前面中斷的位置,使用者將完全沒有中斷的感覺,這是我開始這專案時最想完成的功能)
- 歷史對話紀錄長文自動摘要(以縮減tokens數)
- 超參數調整
- ChatGPT inside的傳統自然語言處理任務
- ChatGPT 與Dall.E2協作
- 語氣改寫
- ~~coming soon 會議錄音自動整理!!!!
目前這個專案正在實現:
- 更彈性的上下文管理機制,目前預計會有
- [@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
開啟gradio_streamimg_chatbot.py,請依照指示將金鑰值賦值至環境變數OPENAI_API_KEY 執行gradio_streamimg_chatbot.py即可
python gradio_streamimg_chatbot.py
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
prompt4all-0.0.1.tar.gz
(33.6 kB
view hashes)
Built Distribution
prompt4all-0.0.1-py3-none-any.whl
(33.7 kB
view hashes)
Close
Hashes for prompt4all-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0ec76addefb0abf491f3734319a28fb165d9ca3f91a8a0d0fc2150f11991638 |
|
MD5 | d96abc0e0cdd753b446c007728f5def6 |
|
BLAKE2b-256 | 13ba5f0d6fdb0167d429a36c9d993933c866b237b2aab9fece75e54d182e0518 |