参考 #133
Description
Please include a concise summary, in clear English, of the changes in this pull request. If it closes an issue, please mention it here. 目前并不是一个完整的功能pr,但希望能一起review,或者讨论该如何实现某些功能?不清楚项目内的编码规范,以及具体流程,所以写一点看一点,防止偏差太大
Closes: #(issue)
🎯 PRs Should Target Issues
Before your create a PR, please check to see if there is an existing issue for this change. If not, please create an issue before you create this PR, unless the fix is very small.
Not adhering to this guideline will result in the PR being closed.
这次pr只是个demo,麻烦帮忙看看整体风格,以及要做的事情有没有大的偏差?有的话我这边再改动
归类一下, MineContext中的folder_monitor.py主要做的内容,首先是start、stop用来进行开始/结束自动循环的上下文收集,这里的收集主要是用来扫描原始文件内容,判断是否有产生信息或者修改、删除,以及有的话,需要产生对应的事件,保存到self.events。而capture方法,会对self.events进行后续处理,然后返回RawContextProperties。
删除逻辑比较特殊,后续还需要删除对应的ProcessedContextProperties,并且要删除对应的向量数据
config 可以复用 config.yaml 另外这个 .gitignore 是不是改的有点多 opencontext/context_capture/folder_monitor.py 的逻辑没什么问题