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,您可以使用代码,文档和沟通渠道具有真正的“意识流”,从而使您比以往任何时候都更容易呆在项目之上并与团队合作。我们很高兴继续通过语言模型来推动可能的界限,并彻底改变了开发人员的运作方式。