Chatgpt驅動的瑞士軍刀為現代開發人員提供!我們提供AI驅動的CLI GIT包裝器,樣板代碼生成器,代碼搜索引擎,對話歷史記錄經理等等!

先決條件:
chat with documents請創建一個Pinecone帳戶以使用其矢量數據庫。 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,您需要特殊訪問API。如果您有訪問權限,則可以運行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中生成的,其中僅包括這些文件/子插圖。您可以使用MD Flow使用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 ,它將忘記已發送的所有以前的消息。
如果您嘗試將目錄添加到聊天消息中,則將禁用聊天持久性,並且不會使用以前的上下文。隨著思維流的成熟,這將發生變化,並且OpenAI API在本地支持更多的令牌/對話歷史。
注意:git diff摘要尚不支持聊天持久性。
對您的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.
對您的git倉庫進行一些更改,然後上台。然後,運行mf commit !您應該得到看起來像這樣的響應:
[formatting 7770179] Add needs_push() function and check in run_pr() function.
1 file changed, 14 insertions(+)
對您的分支機構和舞台進行一些更改,然後提交它們。然後,為GitHub運行mf pr或Gitlab mf mr !應使用GPT生成的標題和車身創建拉請請求/合併請求,並應將指向PR的鏈接打印到控制台。



MindFlow使用最新的方法用於高通量分段,處理,存儲和檢索文檔的使用遞歸層次結構摘要和嵌入技術來存儲以文檔塊的嵌入向量,然後實現快速且基於與HIERARCHARCHARCHARCHARCHARCHARCHARCHARCHARCHARCHARCHARCHARCHARCHARCHARCHARCEDS的相似文檔和任務的快速且高質量的響應,並使用較高的響應,並使用heierarkarchalinartharch的文本進行求解,並使用這些文本進行了啟用。此外,如果聊天歷史記錄可以在索引文檔或定期聊天的上下文中適合查詢。
將來,Mindflow計劃成為現代開發人員工具包的更具組成部分。我們計劃添加拋棄傳統文檔的能力,而是直接與您的私人文檔和通信渠道集成,從而提供了更加無縫和直觀的體驗。借助MindFlow,您可以使用代碼,文檔和溝通渠道具有真正的“意識流”,從而使您比以往任何時候都更容易呆在項目之上並與團隊合作。我們很高興繼續通過語言模型來推動可能的界限,並徹底改變了開發人員的運作方式。