::一个有效的工具,可以输入长时间的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存储库。