سكين الجيش السويسري الذي يعمل بالدردشة للمطور الحديث! نحن نقدم غلاف CLI git الذي يعمل به الذكاء الاصطناعى ، ومولد رمز BoilerPlate ، ومحرك بحث التعليمات البرمجية ، ومدير سجل المحادثة ، وأكثر من ذلك بكثير!

المتطلبات المسبقة:
chat with documents . brew tap mindflowai/homebrew-mindflow && brew install mindflow
pip install mindflow
pip install -e path/to/mindflow
mf login : قم بتكوين النموذج المستخدم لتوليد الاستجابات عن طريق تشغيل mf config واختيار إما GPT 3.5 Turbo (افتراضي) أو GPT 4. من أجل استخدام GPT 4 ، ستحتاج إلى الوصول الخاص إلى واجهة برمجة التطبيقات. إذا كان لديك وصول ، فيمكنك تشغيل mf config وتحديد GPT 4. إذا لم يكن لديك وصول ، فستحصل على رسالة خطأ.
هناك مستويات متعددة لاستخدام ميزة دردشة Mindflow.
mf chat "explain what a programming language is"mf chat path/to/code.py "please summarize what this code does"mf chat . للحصول على ملفات صغيرة بما فيه الكفاية (انظر: حدود الرمز المميز ChatGPT) ، سيعمل هذا ويحافظ أيضًا على تاريخ الدردشة.mf chat path/to/submodule1/ path/to/submodule2/ "what are these submodules responsible for?"mf index path/to/subdir/file1.txt path/to/file2.txtmf chat -s ./ "How do all of my classes relate to one another?"-s الفهرسة التلقائية ، وبدلاً من ذلك سيؤجل الفهرس الموجود حاليًا. يتم إنشاء هذا الفهرس في mf index حيث سيتم تضمين فقط تلك الملفات/subdirs. يمكنك استخدام MindFlow لإنشاء رمز Boilerplate في لحظة باستخدام mf gen ! يجب أن يولد فقط التعليمات البرمجية والتعليقات ، وسيحفظ الملف في المسار المعطى.
إليك أمثلة زوجين:
mf gen setup.py "write me a setup.py file for my python package 'foobar'"mf gen main.py "write me a python script with a main if block that prints the first 10 fibonacci numbers"افتراضيًا ، سيتم تخزين رسائل الدردشة البسيطة (عند الرجوع إلى أي ملفات أو ملفات صغيرة جدًا) محليًا حتى تتمكن من الاحتفاظ باستمرار الدردشة.
لمشاهدة إحصائيات حول سجل الدردشة الخاص بك ، يمكنك تشغيل mf history stats .
إذا كنت ترغب في مسح سجل الدردشة الخاص بك ، فيمكنك تشغيل mf history clear وسينسى جميع الرسائل السابقة التي أرسلتها.
إذا حاولت إضافة أدلة إلى رسائل الدردشة الخاصة بك ، فسيتم تعطيل ثبات الدردشة ، ولن يتم استخدام أي سياق سابق. سيتغير هذا مع نضوج MindFlow ، ويدعم API Openai المزيد من مستويات الرمز المميز/تاريخ المحادثة أصلاً.
ملاحظة: لا تدعم ملخصات Diff GIT ثبات الدردشة بعد.
قم بإجراء بعض التغييرات على repo git الخاص بك دون تنظيم/ارتكابها. ثم ، تشغيل mf diff ! يجب أن تحصل على استجابة تبدو هكذا:
`mindflow/commands/diff.py` changes:
- Added import statement for `List` and `Tuple` from the `typing` module.
- Added a function `parse_git_diff` that takes in the output of a `git diff` command and returns a list of tuples containing the file name and the diff content.
- Added a function `batch_git_diffs` that takes in the list of tuples returned by `parse_git_diff` and batches them into smaller chunks of diffs that are less than 3000 characters long.
- Modified the `diff` function to use the new `parse_git_diff` and `batch_git_diffs` functions to batch the diffs and send them to the GPT model for processing.
`mindflow/commands/inspect.py` changes:
- Removed the `print` statement used to output the result of a database query. The git diff shows changes in two files: `mindflow/commands/diff.py` and `mindflow/commands/inspect.py`.
`mindflow/commands/diff.py` changes:
- Added import statement for `List` and `Tuple` from the `typing` module.
- Added a function `parse_git_diff` that takes in the output of a `git diff` command and returns a list of tuples containing the file name and the diff content.
- Added a function `batch_git_diffs` that takes in the list of tuples returned by `parse_git_diff` and batches them into smaller chunks of diffs that are less than 3000 characters long.
- Modified the `diff` function to use the new `parse_git_diff` and `batch_git_diffs` functions to batch the diffs and send them to the GPT model for processing.
`mindflow/commands/inspect.py` changes:
- Removed the `print` statement used to output the result of a database query.
قم بإجراء بعض التغييرات على repo git الخاص بك وتنظيمها. ثم ، قم بتشغيل mf commit ! يجب أن تحصل على استجابة تبدو هكذا:
[formatting 7770179] Add needs_push() function and check in run_pr() function.
1 file changed, 14 insertions(+)
قم بإجراء بعض التغييرات على فرعك ومرحلة ، ثم ارتكبها. ثم ، قم بتشغيل mf pr لـ GitHub أو mf mr لـ GITLAB! يجب إنشاء طلب طلب السحب/دمج بعنوان وجسم تم إنشاؤه بواسطة GPT ، ويجب طباعة رابط للعلاقات العامة إلى وحدة التحكم.



يستخدم MindFlow طرقًا حديثة للتجزئة عالية الإنتاجية ومعالجتها وتخزينها واسترجاعها باستخدام مستندات متكررة للتلخيص الهرمي وتضمين تقنية لتخزين المتجهات التضمين لتكتلات المستندات وبعد ذلك تحقيق استجابات سريعة وذات جودة عالية. بالإضافة إلى ذلك ، سيستمر سجل الدردشة إذا كان بإمكانه ملاءمة السياق للاستفسارات عبر المستندات المفهرسة أو للدردشة العادية.
في المستقبل ، تخطط Mindflow لتصبح جزءًا أكثر تكاملاً من مجموعة أدوات المطور الحديثة. نحن نخطط لإضافة القدرة على التخلص من الوثائق التقليدية وبدلاً من ذلك الاندماج مباشرة مع المستندات الخاصة وقنوات الاتصال الخاصة بك ، مما يتيح تجربة أكثر سلاسة وبديهية. مع Mindflow ، يمكنك الحصول على "دفق وعي" حقيقي مع كودك وتوثيقك وقنوات الاتصال الخاصة بك ، مما يجعل من الأسهل من أي وقت مضى البقاء على رأس مشاريعك والتعاون مع فريقك. نحن متحمسون لمواصلة دفع حدود ما هو ممكن مع نماذج اللغة وإحداث ثورة في كيفية عمل المطورين.