::一個有效的工具,可以輸入長時間的ChatGpt ::
Longchatgpt是輸入長內容進行chatgpt的工具。請注意,該存儲庫是PaperSumgpt的擴展存儲庫。如果您想執行與PaperSumGpt相同的任務,請使用標題為Abbreviator的initial prompt ,並使用final prompt為Paper-abbreviation 。
(最初和最終提示是什麼?請參閱(2)運行
longchatgpt將長件扔到chatgpt)
警告1:對於免費用戶!
更新:PDF轉換功能振興!
如何安裝
用法
longchatgpt之前運行chatgpt_wrapperlongchatgpt將較長的內容扔到chatgpt貢獻
依賴性
執照
[2023-04-04更新]
在使用ChatGpt進行了多個帳戶測試後,我發現ChatGpt的性能存在顯著差異,具體取決於該帳戶是免費用戶還是付費用戶( Chatgpt Plus )。
如果您是Chatgpt的免費用戶,並且要總結長紙,我建議您(1)將您的帳戶升級到Chatgpt Plus ,或(2)重複幾次輸入過程以獲得更好的結果。
不幸的是,chatgpt的免費版本無法理解和存儲輸入文本的長上下文,這導致性能差。
[2023-04-11更新]
好消息!我使用PyTesseract振興了PDF轉換功能。現在,該工具能夠將PDF輸入轉換為格式良好的標記格式,從而通過ChatGpt提供更好的結果。
要使用此功能,只需提供您的PDF文件作為輸入,該工具將自動將其轉換為Chatgpt可以有效處理的降價格式。
請注意,轉換的質量可能取決於輸入PDF的清晰度和格式。但是,該解決方案應該對手動副本進行重大改進,並可以節省您的時間和精力。
隨意嘗試更新的PDF轉換功能,並享受ChatGpt的增強體驗。
如果您使用的是Mac,則可以跳過Windows用戶的(0)。
(0)適用於Windows用戶(僅第一次!)
由於Windows沒有預構建的二進製文件,請按照以下說明在Windows上安裝Longchatgpt。
在“搜索”選項卡中,
Turn Windows features On (Windows 기능 켜기/끄기 in Korean)。然後,選中Windows Subsystem for Linux。接下來,重新啟動計算機。
現在,您需要在本地計算機中安裝Ubuntu。
打開Ubuntu並製作您的UNIX帳戶和密碼。
為了易於使用,您應該通過以下命令安裝
Anaconda(將其複制並粘貼到終端中,一個一個)wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.shbash Anaconda3-2019.10-Linux-x86_64.sh閱讀所有使用Enter的說明並輸入
yes以同意許可證。source ~/.bashrc現在,輸入
conda activate在您的航站樓。如果您在終端中看到
(base),則已成功安裝了Anaconda。在本地計算機中安裝VCXSRV。下載
VcXsrv安裝程序並運行它。
然後,單擊Finish。接下來,打開
XLaunch,然後單擊Next。打開
XLaunch後,您應該檢查以下選項:
- 多個窗口
- 不啟動客戶
- 禁用訪問控制
完畢!現在讓我們繼續前進。
在您的終端中鍵入以下命令。
sudo systemd-machine-id-setupsudo dbus-uuidgen --ensurecat /etc/machine-id如果終端顯示了一系列的數字和字母,則您已成功安裝了
systemd-machine-id-setup和dbus-uuidgen。最後,您可以通過鍵入以下命令來安裝
x11-apps:sudo apt-get install x11-apps xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic通過
DISPLAY.bashrc命令:echo "export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0 sudo /etc/init.d/dbus start &> /dev/null" >> ~/.bashrcsource ~/.bashrc通過鍵入以下命令來測試X11 GUI:
xeyes如果您看到一雙眼睛,則成功安裝了X11 GUI。
這些步驟是必不可少的(在Windows中),以成功地在Windows Terminal中成功執行
playwright(當您配置ChatGPT帳戶時,這至關重要)。
您可以通過克隆此存儲庫來安裝Longchatgpt並從源頭安裝它:
git clone https://github.com/wjgoarxiv/LongChatGPT.git cd LongChatGPT/而且您必須使用install_old-repo.sh安裝chatgpt_wrapper的舊版本。新版本的chatgpt_wrapper與當前版本的longchatgpt不兼容(因為新版本的chatgpt_wrapper將使用chatgpt API,而不是基於流的API)。
chmod +x * ./install_old-repo.sh然後,您可以通過運行以下命令來安裝longchatgpt:
pip install . longchatgpt之前運行chatgpt_wrapper在使用longchatgpt之前,您必須運行chatgpt_wrapper才能啟動chatgpt服務器。
由於您首先在計算機中運行chatgpt_wrapper ,因此您可以輸入以下命令以安裝playwright :
playwright install
夜間將下載並安裝在您當地的機器中。
接下來,您可以使用以下命令來啟動服務器:
chatgpt install在夜間瀏覽器中登錄到您的chatgpt帳戶。如果您看到聊天窗口,請關閉瀏覽器並輸入/exit以關閉chatgpt_wrapper 。之後,您可以通過運行以下命令來重新啟動chatgpt_wrapper :
chatgpt這是chatgpt_wrapper的原始功能。有關更多信息,請訪問gatgpt_wrapper github存儲庫。
longchatgpt將較長的內容扔到chatgpt運行chatgpt_wrapper後,您可以使用longchatgpt將較長的內容扔到chatgpt。您可以通過鍵入以下命令來使用longchatgpt :
longchatgpt將顯示以下消息:
INFO: Please type the number the file type that you want to use:
1. Markdown (`.md`) file
2. Text (`.txt`) file
:
根據您的文件類型,您可以選擇相應的選項。為了進行演示,我將使用以下在Healthline發表的文章。我只是手動複製所有文本,然後將其粘貼到名為demoinput.txt的文本文件中(請注意,本文是關於如何獲得ABS的? )。
由於我們準備了文本文件,因此可以鍵入2並按Enter鍵。
------------------------------------------------
+---------------+-----------------+
| File number | File name |
|---------------+-----------------|
| 1 | ./demoinput.txt |
+---------------+-----------------+
------------------------------------------------
INFO: Please select the file number or press "0" to exit:
我鍵入1 ,然後按Enter鍵。
------------------------------------------------
INFO: Do you want to turn on `verbose` mode? If you turn on `verbose` mode, the program will print the intermediate results. (y/n):
我不想打開verbose模式,因此我鍵入n並按Enter鍵。
INFO: Please type the number the ChatGPT model that you want to use:
1. default (Turbo version for ChatGPT Plus users and default version for free users)
2. gpt4 (Only available for ChatGPT Plus users; a little bit slower than the default model)
3. legacy (Only available for ChatGPT Plus users; an older version of the default model)
Note that the option 2 and 3 are NOT available for free users. If you are the free user, please select the option 1
:
我鍵入1 ,然後按Enter鍵。從現在開始,我們必須關注以下程序:
----------------------------------------
INFO: Let's select the initial prompt. Choose a method to select the initial prompt.
1. Add custom initial prompt
2. Select initial prompt
3. Delete initial prompt
4. Write initial prompt here
5. Exit
Enter your choice:
正如終端詢問的那樣,我們可以選擇輸入初始提示的方法。正如Awesome ChatGpt提示的作者所述,將角色賦予Chatgpt是獲取所需輸出的好方法。黑客chatgpt的最佳方法之一是使用神奇的關鍵字act as...例如,如果我想獲得與營養相關的所需輸出,我可以像Please, act as a nutritionist... 。 longchatgpt可以將這些初始提示作為JSON格式管理。如果這是第一次運行longchatgpt ,則該程序將在當前目錄中創建一個名為initial_prompts.json的JSON文件。新形成的JSON文件看起來如下:
{
"Role 1" : " Initial prompt 1 " ,
"Role 2" : " Initial prompt 2 " ,
"Role 3" : " Initial prompt 3 " ,
}因此,管理自己的提示庫很容易。將自己的初始提示添加到JSON文件中,並隨時使用它們。如果您有任何想法可以分享您的初始提示,請隨時向此存儲庫提出請求。我很樂意收到您的貢獻。
我將以initial_prompts.json中保存的模板初始提示為示例。首先,讓我們Enter your choice:鍵入2並按Enter鍵。
INFO: Available roles:
- Prompt-engineer
- Abbreviator
- Essay-writer
- JailbreakGPT
- Journal-reviewer
- Machine-learning-engineer
- MailGPT
- Pro-journalist
- Proof-reader
- Python-copilot
- Report-writer
INFO: Enter the role you want to use:
我輸入了Journal-reviewer ,然後按Enter鍵。 Journal-reviewer初始提示如下:
{
"Journal-reviewer": "As a journal author, I require you to review and critique my article submitted for publication. You will critically evaluate my research, approach, methodologies, and conclusions, and offer constructive criticism on their strengths and weaknesses. Please provide me with the guidelines or criteria for the review process, such as the expected word count or submission deadlines. As part of your role as a journal reviewer, you will conduct a thorough and rigorous evaluation of my article, assessing its research methodology, data analysis, and overall contribution to the field. You will also provide clear and constructive feedback on the article's strengths and weaknesses, and suggest specific areas for improvement or further development. Furthermore, I understand the importance of maintaining confidentiality and anonymity in the peer review process. You will ensure that my article is reviewed in a timely and professional manner, while maintaining strict confidentiality and adhering to the ethical standards of the journal. I'll now have to provide you with the article to review. The important thing is that you should NOT answer directly or respond to the previous message. Make sure that you have to accomplish the task when all the inputs are given. I'll let you know if all the inputs are given. Thank you.",
}現在,將初始提示扔到chatgpt。將顯示以下消息:
INFO: Tossing initial prompt...
INFO: ChatGPT started consuming all the input contents...
INFO: Waiting for ChatGPT to respond for 1/2 part(s)...
INFO: 1/2 part(s) tossed to ChatGPT.
INFO: Waiting for ChatGPT to respond for 2/2 part(s)...
INFO: 2/2 part(s) tossed to ChatGPT.
迭代後,該程序將要求您輸入final prompt 。
----------------------------------------
INFO: Next, let's select the final prompt. Choose a method to select the final prompt.
1. Add custom final prompt
2. Select final prompt
3. Delete final prompt
4. Write final prompt here
5. Exit
Enter your choice:
您還可以管理自己的最終提示庫。 longchatgpt將在當前目錄中創建一個名為final_prompts.json的JSON文件。新形成的JSON文件看起來如下:
{
"Prompt 1" : " Final prompt 1 " ,
"Prompt 2" : " Final prompt 2 " ,
"Prompt 3" : " Final prompt 3 " ,
}以相同的方式,我將使用保存在final_prompts.json中的模板最終提示。首先,讓我們Enter your choice:鍵入2並按Enter鍵。
INFO: Available final prompts:
- Paper-abbreviation
- code-revision
- JAILBREAK
- Review
- Journalism
- Education
我輸入了Review ,然後按Enter鍵。
INFO: Selected final prompt: Now, all the inputs are given to you. You should write your complete review by fitting into the following format. The format is as follows:
------ TEMPLATE STARTS ------
# **[TITLE]**
## Review
[REVIEW]
------ TEMPLATE ENDS ------
And please, write the outputs thinking you are writing PPT slides. But NOT too simple. You have to write the outputs in a way that the readers can understand the contents easily. Do NOT consider the output length limit!
幾秒鐘後,該程序將向用戶顯示輸出文件。
INFO: Response from ChatGPT: # **The Best Ways to Get Abs (With or Without a Six-Pack)**
## Review
This article provides a comprehensive overview of six-pack abs, including what they are, the factors that affect abdominal development, and strategies for building a strong, functional core. The article emphasizes that while having visible abs may be an aesthetically appealing goal for many, the primary benefits of core training go far beyond appearances.
The article discusses the rectus abdominis muscle, which is responsible for flexing the spine forward and is commonly associated with visible six-pack abs. However, the article emphasizes that the rectus abdominis is just one of many muscles in the core, and that core training should target all of these muscles for optimal benefits.
The article also discusses the role of body fat percentage in determining the visibility of six-pack abs, emphasizing that a low body fat percentage is necessary to reveal a chiseled six-pack. The article provides a range of typical ballpark body fat percentages for men and women that are associated with visible six-pack abs, and notes that genetics, lifestyle factors, and calorie intake can all affect where an individual tends to store and burn fat.
The article provides practical tips for building a strong, functional core, including exercises that occur in all planes of motion and static and movement-based exercises to train both stability and motion in the core muscles. The article also provides lifestyle strategies for reducing body fat percentage, including getting adequate sleep, exercising regularly with weights and cardio, eating a healthy diet high in fresh fruits, vegetables, and lean proteins, and choosing water over sugary drinks.
Overall, this article provides a well-rounded overview of six-pack abs and core training, emphasizing the importance of building a strong, functional core for improved health and well-being, rather than focusing solely on appearance. The article provides practical tips and strategies for achieving a visible six-pack, while also emphasizing the challenges of maintaining a low body fat percentage and the importance of maintaining a healthy lifestyle for long-term health benefits.
INFO: Does the answer seem to be truncated? (y/n):
請注意,該程序最終詢問您的答案是否被截斷了。當您處理大型輸入文件時,該程序有時會截斷答案(這可能是由於基於Web的引擎的限制)。如果您認為答案已被截斷,則可以嘗試通過鍵入y並按Enter鍵來繼續輸出輸出。然後,程序將使所有中間輸出串聯(但不要過分信任此功能,因為ChatGpt的輸出並不總是準確的,有時ChatGpt會顯示出意外的輸出)。
在此示例中,我鍵入n因為似乎答案沒有被截斷。
INFO: Choose output format (stream / txt / md):
longchatgpt程序將要求您選擇輸出格式。您可以選擇stream , txt (文本格式)或md (Markdown Format)。在此示例中,我選擇了md並按Enter鍵。
INFO: Output saved as OUTPUT.md
現在,程序將在當前目錄中將輸出文件作為OUTPUT.md 。您可以在demo目錄中查看[demoOUTPUT.md](demo/demoOUTPUT.md)文件以查看演示輸出。
請注意,Chatgpt有時會產生意外的輸出!在這種情況下,您應該再嘗試幾次以獲得最佳結果。您可以修改提示或中間聊天內容,可以訪問ChatGpt官方網站。祝你好運! ?
longchatgpt計劃,請分享您的初始和最終及時的想法以及您的反饋。使用Pull Requests為項目做出貢獻。集體智能的力量將是改善計劃的最佳方法! ? 該項目已根據MIT許可獲得許可。
有關更多信息,錯誤報告或功能請求,請訪問GitHub存儲庫。