::長いコンテンツをchatgptに入力するための効果的なツール::
longchatgptは、長いコンテンツをchatgptに入力するためのツールです。このリポジトリはPaperSumgptの拡張リポジトリであることに注意してください。 PaperSumgptと同じタスクを実行する場合は、 Abbreviatorというタイトルのinitial promptと、 Paper-abbreviationというタイトルのfinal promptを使用します。
(初期および最終プロンプトとは何ですか
longchatgpt
注意1:chatgpt無料ユーザーの場合!
更新:PDF変換機能が活性化されました!
インストール方法
使用法
longchatgptを使用する前にchatgpt_wrapperを実行しますlongchatgptを実行して長い内容を投げてchatgpt貢献
依存関係
ライセンス
[2023-04-04更新]
ChatGPTを使用していくつかのアカウントでテストした後、アカウントが無料のユーザーか有給ユーザー( ChatGPT Plus )であるかに応じて、ChATGPTのパフォーマンスに大きな違いがあることがわかりました。
ChatGptの無料ユーザーであり、要約する長い論文がある場合は、(1)アカウントをChatGPT Plusにアップグレードするか、(2)入力プロセスを数回繰り返して、より良い結果を得ることをお勧めします。
残念ながら、ChatGPTの無料バージョンは、入力テキストの長いコンテキストを理解して保存することはできません。これにより、パフォーマンスが低下します。
[2023-04-11更新]
素晴らしいニュース! PyTesseractを使用して、PDF変換機能を活性化しました。現在、このツールは、PDF入力を適切にフォーマットされたMarkdown形式に変換することができ、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をインストールする必要があります(ターミナルに1つずつコピーして貼り付けます)wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.shbash Anaconda3-2019.10-Linux-x86_64.shENTERですべての指示を読み、
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次のコマンドを入力して、
.bashrcファイルに環境変数DISPLAYを追加します。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ターミナルで
playwright正常に実行するために(Windowsで)不可欠です(ChatGPTアカウントを構成するときに重要です)。
このリポジトリをクローニングしてLongChatgptをインストールし、ソースからインストールできます。
git clone https://github.com/wjgoarxiv/LongChatGPT.git cd LongChatGPT/また、 install_old-repo.shを使用して、 chatgpt_wrapperのレガシーバージョンをインストールする必要があります。 chatgpt_wrapperの新しいバージョンは、現在のバージョンのlongchatgptと互換性がありません( chatgpt_wrapperの新しいバージョンは、ストリームベースのapiではなくchatgpt 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の元の機能です。詳細については、chatgpt_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という名前のテキストファイルに貼り付けます(この記事は、腹筋を取得する方法に関するものであることに注意してください。 )。
テキストファイルを準備したため、 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:
ターミナルが尋ねるように、最初のプロンプトをCHATGPTに入力する方法を選択できます。 Awesome ChatGptプロンプトのライターが言及したように、ChatGptに役割を与えることは、望ましい出力を取得する良い方法です。 ChatGptをハッキングする最良の方法の1つは、魔法のキーワード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形式)を選択できます。この例では、 mdを選択し、 Enterキーを押しました。
INFO: Output saved as OUTPUT.md
これで、プログラムは出力ファイルを現在のディレクトリのOUTPUT.mdとして保存します。 [demoOUTPUT.md](demo/demoOUTPUT.md)ファイルをdemoディレクトリのファイルを確認して、デモ出力を確認できます。
ChatGptが予期しない出力を作成することがあることに注意してください!この場合、最良の結果を得るには、さらに数回試してみる必要があります。プロンプトまたは中級のチャットコンテンツを修正することができます。ChatGptの公式Webサイトにアクセスできます。あなたの作品で頑張ってください! ??
longchatgptプログラムを強化するには、初期および最終的なプロンプトのアイデアとフィードバックを共有してください。プロジェクトに貢献するために、 Pull Requestsを使用してください。集合的な知性の力は、プログラムを改善するための最良の方法です! ? このプロジェクトは、MITライセンスの下でライセンスされています。
詳細、バグレポート、または機能のリクエストについては、GitHubリポジトリをご覧ください。