:: un outil efficace pour saisir le contenu long de ChatGpt ::
Longchatgpt est un outil pour saisir le contenu long à Chatgpt . Notez que ce référentiel est un référentiel prolongé de PAPERSUMGPT. Si vous souhaitez effectuer une même tâche que PAPERSUMGPT, utilisez l' initial prompt intitulée Abbreviator et final prompt intitulée Paper-abbreviation .
(Quelles sont les invites initiales et finales ? Voir (2) Exécutez
longchatgptpour lancer de longs contenus à Chatgpt)
ATTENTION 1: Pour les utilisateurs gratuits de chatgpt!
Mise à jour: la fonctionnalité de conversion PDF revitalisée!
Comment installer
Usage
chatgpt_wrapper avant d'utiliser longchatgptlongchatgpt pour lancer un long contenu pour chatterContributif
Dépendances
Licence
[2023-04-04 Mise à jour]
Après avoir testé avec plusieurs comptes avec Chatgpt, j'ai constaté qu'il y avait des différences significatives dans les performances de Chatgpt selon que le compte est un utilisateur gratuit ou un utilisateur payant ( Chatgpt Plus ).
Si vous êtes un utilisateur gratuit de Chatgpt et que vous avez un long papier à résumer, je vous recommande de (1) mettre à niveau votre compte vers ChatGpt Plus , ou (2) répéter le processus d'entrée plusieurs fois pour obtenir de meilleurs résultats.
Malheureusement, la version gratuite de Chatgpt ne peut pas comprendre et stocker le contexte long du texte d'entrée, ce qui conduit à une mauvaise performance.
[2023-04-11 Mise à jour]
Bonne nouvelle! J'ai revitalisé la fonctionnalité de conversion du PDF à l'aide de PyTesseract . Désormais, cet outil est capable de convertir les entrées PDF en format Markdown bien formulé, fournissant de meilleurs résultats avec ChatGpt.
Pour utiliser cette fonctionnalité, fournissez simplement votre fichier PDF en entrée, et l'outil le convertira automatiquement en un format Markdown que Chatgpt peut traiter efficacement.
Veuillez noter que la qualité de la conversion peut dépendre de la clarté et du formatage du PDF d'entrée. Cependant, cette solution devrait être une amélioration significative par rapport aux copies manuelles et vous fera gagner du temps et des efforts.
N'hésitez pas à essayer les fonctionnalités de conversion PDF mises à jour et à profiter de l'expérience améliorée avec Chatgpt.
Si vous utilisez Mac, vous pouvez sauter (0) pour l'étape des utilisateurs de Windows.
(0) pour les utilisateurs de Windows (première fois seulement!)
Puisqu'il n'y a pas de binaires prédéfinis pour Windows, suivez les instructions ci-dessous pour installer LongChatgpt sur Windows.
Dans l'onglet Recherche, tapez
Turn Windows features On (Windows 기능 켜기/끄기 in Korean). Ensuite, cochez la case duWindows Subsystem for Linux.Ensuite, redémarrez votre ordinateur.
Maintenant, vous devez installer Ubuntu dans votre ordinateur local.
Ouvrez Ubuntu et créez vos comptes et mots de passe UNIX.
Pour plus de facilité d'utilisation, vous devez installer
Anacondaen suivant les commandes (copiez-les et collez-les dans votre terminal, un par un)wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.shbash Anaconda3-2019.10-Linux-x86_64.shLisez toutes les instructions avec Entrée et Tapez
yespour être d'accord avec la licence.source ~/.bashrcMaintenant, tapez
conda activatedans votre terminal. Si vous voyez
(base)dans votre terminal, vous avez réussi à installer Anaconda.Installez VCXSRV dans votre ordinateur local. Téléchargez le programme d'installation
VcXsrvet exécutez-le.
Ensuite, cliquez surFinish.Ensuite, ouvrez
XLaunchet cliquez surNext.Après avoir ouvert
XLaunch, vous devriez vérifier les options suivantes:
- Plusieurs fenêtres
- Démarrer aucun client
- Désactiver le contrôle d'accès
Fait! Passons maintenant au terminal.
Tapez les commandes ci-dessous dans votre terminal.
sudo systemd-machine-id-setupsudo dbus-uuidgen --ensurecat /etc/machine-idSi le terminal montre une longue chaîne de nombres et de lettres, vous avez installé avec succès
systemd-machine-id-setupetdbus-uuidgen.Enfin, vous pouvez installer
x11-appsen tapant la commande suivante:sudo apt-get install x11-apps xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillicAjoutez l'
DISPLAYla variable d'environnement à votre fichier.bashrcen tapant la commande suivante:echo "export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0 sudo /etc/init.d/dbus start &> /dev/null" >> ~/.bashrcsource ~/.bashrcTestez votre GUI X11 en tapant la commande suivante:
xeyesSi vous voyez une paire d'yeux, vous avez réussi à installer X11 GUI.
Ces étapes sont essentielles (sous Windows) pour exécuter avec succès
playwrightdans Windows Terminal (ce qui est critique lorsque vous configurez votre compteChatGPT).
Vous pouvez installer LongChatgpt en clonage ce référentiel et l'installer à partir de la source:
git clone https://github.com/wjgoarxiv/LongChatGPT.git cd LongChatGPT/ Et vous devez utiliser install_old-repo.sh pour installer la version héritée de chatgpt_wrapper . La nouvelle version de chatgpt_wrapper n'est pas compatible avec la version actuelle de longchatgpt (puisque la nouvelle version de chatgpt_wrapper utilisera l'API Chatgpt, pas la base de flux).
chmod +x * ./install_old-repo.shEnsuite, vous pouvez installer LongChatgpt en exécutant la commande suivante:
pip install . chatgpt_wrapper avant d'utiliser longchatgpt Avant d'utiliser longchatgpt , vous devez exécuter chatgpt_wrapper pour démarrer le serveur Chatgpt.
Étant donné que vous exécutez d'abord chatgpt_wrapper dans votre ordinateur, vous pouvez saisir la commande suivante pour installer playwright :
playwright install
La nuit sera téléchargée et installée dans votre machine locale.
Ensuite, vous pouvez utiliser la commande suivante pour démarrer le serveur:
chatgpt install Connectez-vous à votre compte Chatgpt dans Nightly Browser. Si vous voyez la fenêtre de chat, fermez le navigateur et tapez /exit pour fermer le chatgpt_wrapper . Après cela, vous pouvez redémarrer le chatgpt_wrapper en exécutant la commande suivante:
chatgpt Il s'agit de la fonctionnalité originale de chatgpt_wrapper . Pour plus d'informations, veuillez visiter le référentiel GitHub ChatGPT_Wrapper.
longchatgpt pour lancer un long contenu pour chatter Après avoir exécuté chatgpt_wrapper , vous pouvez utiliser longchatgpt pour lancer un contenu long pour Chatgpt. Vous pouvez utiliser longchatgpt en tapant la commande suivante:
longchatgptLe message suivant serait affiché:
INFO: Please type the number the file type that you want to use:
1. Markdown (`.md`) file
2. Text (`.txt`) file
:
Selon votre type de fichier, vous pouvez choisir l'option correspondante. Pour une démonstration, j'utiliserai l'article suivant publié dans Healthline. Je copie manuellement tous les textes et je le colle dans un fichier texte nommé demoinput.txt ( Notez que cet article concerne la façon d'obtenir des abdos ? ).
Puisque nous avons préparé un fichier texte, nous pouvons taper 2 et appuyer sur la touche Enter .
------------------------------------------------
+---------------+-----------------+
| File number | File name |
|---------------+-----------------|
| 1 | ./demoinput.txt |
+---------------+-----------------+
------------------------------------------------
INFO: Please select the file number or press "0" to exit:
J'ai tapé 1 et appuyé sur la touche 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):
Je ne veux pas activer le mode verbose , donc j'ai tapé n et appuyé sur la touche 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
:
J'ai tapé 1 et appuyé sur la touche Enter . À partir de maintenant, nous devons nous concentrer sur les procédures suivantes:
----------------------------------------
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:
Comme le terminal le demande, nous pouvons choisir le moyen de saisir l' invite initiale de ChatGpt. Comme l'auteur de l'impressionnant Chatgpt invite mentionné, donner le rôle à Chatgpt est un bon moyen d'obtenir les sorties souhaitées. L'une des meilleures façons de pirater le chatppt est d'utiliser le mot-clé magique act as... Par exemple, si je veux obtenir les résultats souhaités liés à la nutrition, je peux faire une invite initiale comme Please, act as a nutritionist... Le longchatgpt peut gérer ces invites initiales sous forme de format JSON . Si c'est la première fois à exécuter longchatgpt , le programme créera un fichier JSON nommé initial_prompts.json dans le répertoire actuel. Le fichier JSON nouvellement formé ressemble à ce qui suit:
{
"Role 1" : " Initial prompt 1 " ,
"Role 2" : " Initial prompt 2 " ,
"Role 3" : " Initial prompt 3 " ,
}Par conséquent, il est facile de gérer votre propre bibliothèque rapide. Ajoutez vos propres invites initiales au fichier JSON et utilisez-les quand vous le souhaitez. Si vous avez des idées pour partager vos invites initiales, n'hésitez pas à faire une demande de traction vers ce référentiel. Je serai heureux de recevoir vos contributions.
J'utiliserai l'invite initiale du modèle enregistrée dans initial_prompts.json comme exemple. Tout d'abord, Enter your choice: et tapez 2 et appuyez sur la touche 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:
J'ai tapé Journal-reviewer et appuyé sur la touche Enter . L'invite initiale Journal-reviewer est la suivante:
{
"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.",
}Maintenant, l'invite initiale est lancée sur le chatppt. Le message suivant serait affiché:
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.
Après l'itération, le programme vous demandera de saisir l' 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:
Vous pouvez également gérer votre propre bibliothèque invite finale. Le longchatgpt créera un fichier JSON nommé final_prompts.json dans le répertoire actuel. Le fichier JSON nouvellement formé ressemble à ce qui suit:
{
"Prompt 1" : " Final prompt 1 " ,
"Prompt 2" : " Final prompt 2 " ,
"Prompt 3" : " Final prompt 3 " ,
} De la même manière, j'utiliserai l'invite finale du modèle enregistrée dans final_prompts.json comme exemple. Tout d'abord, Enter your choice: et tapez 2 et appuyez sur la touche Enter .
INFO: Available final prompts:
- Paper-abbreviation
- code-revision
- JAILBREAK
- Review
- Journalism
- Education
J'ai tapé Review et appuyé sur la touche 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!
Après quelques secondes, le programme affichera le fichier de sortie à l'utilisateur.
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):
Notez que le programme vous demande enfin si la réponse semble tronquée ou non . Lorsque vous traitez un grand fichier d'entrée, le programme tronque parfois la réponse (peut-être que cela est dû à la limitation du moteur Web). Si vous pensez que la réponse est tronquée, vous pouvez essayer de continuer l'exportation de sortie en tapant y et en appuyant sur la touche Enter . Ensuite, le programme concatera toutes les sorties intermédiaires (mais ne faites pas trop confiance à cette fonctionnalité, car les sorties de Chatgpt ne sont pas toujours exactes, et parfois Chatgpt montrera une sortie inattendue).
Dans cet exemple, j'ai tapé n car il semble que la réponse ne soit pas tronquée.
INFO: Choose output format (stream / txt / md):
Le programme longchatgpt vous demandera de choisir le format de sortie. Vous pouvez choisir stream , txt (format de texte) ou md (Format Markdown). Dans cet exemple, j'ai choisi md et appuyé sur la touche Enter .
INFO: Output saved as OUTPUT.md
Désormais, le programme enregistre le fichier de sortie sous forme OUTPUT.md dans le répertoire actuel. Vous pouvez vérifier le fichier [demoOUTPUT.md](demo/demoOUTPUT.md) dans le répertoire demo pour voir les sorties de démonstration.
Notez que Chatgpt fait parfois des sorties inattendues! Dans ce cas, vous devriez essayer quelques fois de plus pour obtenir le meilleur résultat. Vous pouvez réviser des invites ou des contenus de chat intermédiaires, vous pouvez visiter le site officiel de ChatGpt. Bonne chance avec vos œuvres! ??
longchatgpt , veuillez partager vos idées invites initiales et finales et vos commentaires. Utilisez Pull Requests pour contribuer au projet. Le pouvoir de l'intelligence collective serait le meilleur moyen d'améliorer le programme! ? Ce projet est autorisé sous la licence du MIT.
Pour plus d'informations, des rapports de bogues ou des demandes de fonctionnalités, veuillez visiter le référentiel GitHub.