:: أداة فعالة لإدخال محتويات طويلة إلى chatgpt ::
Longchatgpt هي أداة لإدخال محتويات طويلة إلى ChatGpt . لاحظ أن هذا المستودع تم توسيعه مستودع من PapersumGPT. إذا كنت ترغب في تنفيذ نفس مهمة PapersumGPT ، فاستخدم initial prompt بعنوان Abbreviator ، والمطالبة final prompt بعنوان Paper-abbreviation .
(ما هي المطالبات الأولية والنهائية ؟ انظر (2) Run
longchatgptلإلقاء محتويات طويلة إلى ChatGPT)
تحذير 1: لمستخدمي chatgpt الحرة!
تحديث: تنشيط وظيفة تحويل PDF!
كيفية التثبيت
الاستخدام
chatgpt_wrapper قبل استخدام longchatgptlongchatgpt لإلقاء محتويات طويلة إلى ChatGptالمساهمة
التبعيات
رخصة
[2023-04-04 محدث]
بعد اختباري مع العديد من الحسابات مع ChatGPT ، وجدت أن هناك اختلافات كبيرة في أداء chatgpt اعتمادًا على ما إذا كان الحساب مستخدمًا مجانيًا أو مستخدمًا مدفوعًا ( ChatGPT Plus ).
إذا كنت مستخدمًا مجانيًا لـ ChatGpt ، وكان لديك ورقة طويلة لتلخيصها ، أوصيك بترقية حسابك إلى ChatGpt Plus ، أو (2) كرر عملية الإدخال عدة مرات للحصول على نتائج أفضل.
لسوء الحظ ، لا يمكن للإصدار المجاني من ChatGpt فهم وتخزين السياق الطويل لنص الإدخال ، مما يؤدي إلى ضعف أداء.
[2023-04-11 تم تحديثه]
أخبار رائعة! لقد قمت بإعادة تنشيط وظائف تحويل PDF باستخدام PyTesseract . الآن ، هذه الأداة قادرة على تحويل مدخلات PDF إلى تنسيق تخفيض جيد التنسيق ، مما يوفر نتائج أفضل مع chatgpt.
لاستخدام هذه الميزة ، ما عليك سوى توفير ملف PDF الخاص بك كمدخلات ، وسيقوم الأداة بتحويلها تلقائيًا إلى تنسيق تخفيض يمكن لـ ChatGPT معالجته بفعالية.
يرجى ملاحظة أن جودة التحويل قد تعتمد على وضوح الإدخال PDF وتنسيقه. ومع ذلك ، يجب أن يكون هذا الحل تحسنًا كبيرًا على تكسير النسخ اليدوي وسيوفر لك الوقت والجهد.
لا تتردد في تجربة وظائف تحويل PDF المحدثة والاستمتاع بالتجربة المحسنة مع ChatGPT.
إذا كنت تستخدم Mac ، فيمكنك تخطي (0) لخطوة مستخدمي Windows.
(0) لمستخدمي Windows (لأول مرة فقط!)
نظرًا لعدم وجود ثنائيات تم إنشاؤها مسبقًا لنظام التشغيل Windows ، اتبع الإرشادات أدناه لتثبيت Longchatgpt على Windows.
في علامة التبويب البحث ، اكتب
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إذا أظهرت Terminal سلسلة طويلة من الأرقام والحروف ، فقد قمت بنجاح بتثبيت
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 عن طريق كتابة الأمر التالي:
xeyesإذا رأيت زوجًا من العيون ، فقد قمت بتثبيت X11 GUI بنجاح.
هذه الخطوات ضرورية (في Windows) لتنفيذ
playwrightبنجاح في Windows Terminal (وهو أمر بالغ الأهمية عند تكوين حساب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 ، وليس الإصدار القائم على الدفق).
chmod +x * ./install_old-repo.shبعد ذلك ، يمكنك تثبيت LongChatgpt عن طريق تشغيل الأمر التالي:
pip install . chatgpt_wrapper قبل استخدام longchatgpt قبل استخدام longchatgpt ، يجب عليك تشغيل chatgpt_wrapper لبدء خادم ChatGPT.
نظرًا لأنك تقوم أولاً بتشغيل chatgpt_wrapper في جهاز الكمبيوتر الخاص بك ، يمكنك إدخال الأمر التالي لتثبيت playwright :
playwright install
سيتم تنزيل وتثبيت The Nightly في جهازك المحلي.
بعد ذلك ، يمكنك استخدام الأمر التالي لبدء الخادم:
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. كما هو مذكور في مطالبة ChatGpt Awesome ، فإن إعطاء دور ChatGpt هو وسيلة جيدة للحصول على المخرجات المطلوبة. واحدة من أفضل الطرق لاختراق chatgpt هي استخدام act as... على سبيل المثال ، إذا كنت أرغب في الحصول على المخرجات المرغوبة المتعلقة بالتغذية ، فيمكنني جعل مطالبة أولية مثل Please, act as a nutritionist... يمكن لـ longchatgpt إدارة هذه المطالبات الأولية كتنسيق JSON . إذا كانت هذه هي المرة الأولى التي يتم فيها تشغيل longchatgpt ، فسيقوم البرنامج بإنشاء ملف JSON يسمى initial_prompts.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 بإنشاء ملف JSON يسمى final_prompts.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):
لاحظ أن البرنامج يسألك أخيرًا ما إذا كان يبدو أن الإجابة مقطوعة أم لا . عندما تتعامل مع ملف إدخال كبير ، فإن البرنامج ياقت أحيانًا الإجابة (ربما يكون هذا بسبب قيود المحرك المستند إلى الويب). إذا كنت تعتقد أن الإجابة مقطوعة ، فيمكنك محاولة متابعة تصدير الإخراج عن طريق كتابة 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 الرسمي. حظا سعيدا مع أعمالك! ؟
longchatgpt ، يرجى مشاركة أفكارك المذهلة والنهائية ، وردود الفعل الخاصة بك. استخدم Pull Requests للمساهمة في المشروع. قوة الذكاء الجماعي ستكون أفضل طريقة لتحسين البرنامج! ؟ هذا المشروع مرخص بموجب ترخيص معهد ماساتشوستس للتكنولوجيا.
لمزيد من المعلومات أو تقارير الأخطاء أو طلبات الميزات ، يرجى زيارة مستودع GitHub.