Skip to content

[Bug]: #367

@xujiangze

Description

@xujiangze

Bug Description

版本: openviking==0.1.18
问题: 对于小文件, 字数<400字的md
首次add_resource.md并不会触发索引, 再次添加相同的文件时才会触发.

Steps to Reproduce

代码如下

import openviking as ov
import asyncio

async def startup_global_viking_client() -> ov.AsyncOpenViking:
    db_path = "./data"  # bug 目前暂时只能在 ./data目录下
    # print(db_path)
    return await OpenViKingHelper.get_client(db_path)

import logging
logging.basicConfig(level=logging.DEBUG)


async def main():
    client = await startup_global_viking_client()
    # await client.add_resource(path="runtimes/bsrag/user/admin/d6b674b2-380d-4322-a555-bfdf9e61c2cf/0ec4f710-50ee-46e6-abc4-aa11c17c9641.txt", target="viking://resources/admin/d6b674b2-380d-4322-a555-bfdf9e61c2cf/", wait=True)
    await client.add_resource(path="cd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1.md", target="viking://resources/admin/d6b674b2-380d-4322-a555-bfdf9e61c2cf/", wait=True)
    # uri = "viking://resources/admin/d6b674b2-380d-4322-a555-bfdf9e61c2cf"  # TODO: 替换为实际的 URI
    # result = await client.search(query="封闭系统", target_uri=uri)
    # print(result.to_dict())
    await client.wait_processed()
    await client.close()

if __name__ == '__main__':
    asyncio.run(main())

Expected Behavior

预期应该有输出

Actual Behavior

首次执行时未索引, 第二次执行时索引
首次执行时实际的文件内容为:

Minimal Reproducible Example

Error Logs

首次的日志:

(venv) (base) ➜  bidproject git:(xjz-dev) ✗ python openviking_test.py
DEBUG:asyncio:Using selector: KqueueSelector
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:1833
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/health HTTP/1.1" 200 97
DEBUG:asyncio:Using selector: KqueueSelector
DEBUG:asyncio:Using selector: KqueueSelector
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:1833
DEBUG:urllib3.connectionpool:Starting new HTTP connection (2): localhost:1833
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Fqueue%2FSemantic&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Fqueue%2FEmbedding&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FSemantic%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FEmbedding%2Fsize HTTP/1.1" 200 1
DEBUG:tzlocal:/etc/localtime found
DEBUG:tzlocal:1 found:
 {'/etc/localtime is a symlink to': 'Asia/Shanghai'}
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:1833
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Fsession HTTP/1.1" 500 48
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fsession&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fsession%2F.abstract.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fsession%2F.overview.md HTTP/1.1" 200 31
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FEmbedding%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Fagent HTTP/1.1" 500 46
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fagent&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fagent%2F.abstract.md HTTP/1.1" 200 31
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fagent%2F.overview.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FEmbedding%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Fagent%2Fmemories HTTP/1.1" 500 55
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fagent&mode=755 HTTP/1.1" 500 45
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fagent%2Fmemories&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fagent%2Fmemories%2F.abstract.md HTTP/1.1" 200 31
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fagent%2Fmemories%2F.overview.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FEmbedding%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Fagent%2Fmemories%2Fcases HTTP/1.1" 500 61
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fagent&mode=755 HTTP/1.1" 500 45
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fagent%2Fmemories&mode=755 HTTP/1.1" 500 54
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fagent%2Fmemories%2Fcases&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fagent%2Fmemories%2Fcases%2F.abstract.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fagent%2Fmemories%2Fcases%2F.overview.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FEmbedding%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Fagent%2Fmemories%2Fpatterns HTTP/1.1" 500 64
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fagent&mode=755 HTTP/1.1" 500 45
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fagent%2Fmemories&mode=755 HTTP/1.1" 500 54
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fagent%2Fmemories%2Fpatterns&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fagent%2Fmemories%2Fpatterns%2F.abstract.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fagent%2Fmemories%2Fpatterns%2F.overview.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FEmbedding%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Fagent%2Finstructions HTTP/1.1" 500 59
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fagent&mode=755 HTTP/1.1" 500 45
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fagent%2Finstructions&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fagent%2Finstructions%2F.abstract.md HTTP/1.1" 200 31
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fagent%2Finstructions%2F.overview.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FEmbedding%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Fagent%2Fskills HTTP/1.1" 500 53
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fagent&mode=755 HTTP/1.1" 500 45
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fagent%2Fskills&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fagent%2Fskills%2F.abstract.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fagent%2Fskills%2F.overview.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FEmbedding%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Fresources HTTP/1.1" 500 50
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fresources%2F.abstract.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fresources%2F.overview.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FEmbedding%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Ftransactions HTTP/1.1" 500 53
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Ftransactions&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Ftransactions%2F.abstract.md HTTP/1.1" 200 31
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Ftransactions%2F.overview.md HTTP/1.1" 200 31
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FEmbedding%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Fuser HTTP/1.1" 500 45
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fuser&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fuser%2F.abstract.md HTTP/1.1" 200 31
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fuser%2F.overview.md HTTP/1.1" 200 31
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FEmbedding%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Fuser%2Fmemories HTTP/1.1" 500 54
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fuser&mode=755 HTTP/1.1" 500 44
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fuser%2Fmemories&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fuser%2Fmemories%2F.abstract.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fuser%2Fmemories%2F.overview.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FEmbedding%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Fuser%2Fmemories%2Fpreferences HTTP/1.1" 500 66
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fuser&mode=755 HTTP/1.1" 500 44
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fuser%2Fmemories&mode=755 HTTP/1.1" 500 53
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fuser%2Fmemories%2Fpreferences&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fuser%2Fmemories%2Fpreferences%2F.abstract.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fuser%2Fmemories%2Fpreferences%2F.overview.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FEmbedding%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Fuser%2Fmemories%2Fentities HTTP/1.1" 500 63
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fuser&mode=755 HTTP/1.1" 500 44
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fuser%2Fmemories&mode=755 HTTP/1.1" 500 53
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fuser%2Fmemories%2Fentities&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fuser%2Fmemories%2Fentities%2F.abstract.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fuser%2Fmemories%2Fentities%2F.overview.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FEmbedding%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Fuser%2Fmemories%2Fevents HTTP/1.1" 500 61
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fuser&mode=755 HTTP/1.1" 500 44
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fuser%2Fmemories&mode=755 HTTP/1.1" 500 53
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fuser%2Fmemories%2Fevents&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fuser%2Fmemories%2Fevents%2F.abstract.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fuser%2Fmemories%2Fevents%2F.overview.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FEmbedding%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FSemantic%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FEmbedding%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FEmbedding%2Fdequeue HTTP/1.1" 200 797
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Ftemp&mode=755 HTTP/1.1" 500 44
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Ftemp%2F02281736_52328b&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Ftemp&mode=755 HTTP/1.1" 500 44
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Ftemp%2F02281736_52328b&mode=755 HTTP/1.1" 500 60
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Ftemp%2F02281736_52328b%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Ftemp&mode=755 HTTP/1.1" 500 44
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Ftemp%2F02281736_52328b&mode=755 HTTP/1.1" 500 60
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Ftemp%2F02281736_52328b%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1&mode=755 HTTP/1.1" 500 99
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Ftemp%2F02281736_52328b%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1%2F%E4%B8%8A%E4%B8%80%E6%9C%9F%E6%88%91%E4%BB%AC%E8%AE%B2%E4%BA%86%E4%B8%BA%E4%BB%80%E4%B9%88AI%E9%9C%80%E8%A6%81%E4%B8%8A%E4%B8%8B%E6%96%87%E5%B7%A5%E7%A8%8B_2more.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Ftemp&mode=755 HTTP/1.1" 500 44
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Ftemp%2F02281736_52328b&mode=755 HTTP/1.1" 500 60
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Ftemp%2F02281736_52328b%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1&mode=755 HTTP/1.1" 500 99
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Ftemp%2F02281736_52328b%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1%2F%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA%E6%98%AFAI%E7%9A%84%E7%81%B5%E9%AD%82.md HTTP/1.1" 200 33
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/directories?path=%2Flocal%2Ftemp%2F02281736_52328b HTTP/1.1" 200 208
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/stat?path=%2Flocal%2Fresources%2Fadmin%2Fd6b674b2-380d-4322-a555-bfdf9e61c2cf%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1 HTTP/1.1" 500 132
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources&mode=755 HTTP/1.1" 500 49
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources&mode=755 HTTP/1.1" 500 49
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources%2Fadmin&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources&mode=755 HTTP/1.1" 500 49
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources%2Fadmin&mode=755 HTTP/1.1" 500 55
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources%2Fadmin%2Fd6b674b2-380d-4322-a555-bfdf9e61c2cf&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources&mode=755 HTTP/1.1" 500 49
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources%2Fadmin&mode=755 HTTP/1.1" 500 55
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources%2Fadmin%2Fd6b674b2-380d-4322-a555-bfdf9e61c2cf&mode=755 HTTP/1.1" 500 92
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources%2Fadmin%2Fd6b674b2-380d-4322-a555-bfdf9e61c2cf%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1&mode=755 HTTP/1.1" 201 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/directories?path=%2Flocal%2Ftemp%2F02281736_52328b%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1 HTTP/1.1" 200 408
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Flocal%2Ftemp%2F02281736_52328b%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1%2F%E4%B8%8A%E4%B8%80%E6%9C%9F%E6%88%91%E4%BB%AC%E8%AE%B2%E4%BA%86%E4%B8%BA%E4%BB%80%E4%B9%88AI%E9%9C%80%E8%A6%81%E4%B8%8A%E4%B8%8B%E6%96%87%E5%B7%A5%E7%A8%8B_2more.md HTTP/1.1" 200 649
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources&mode=755 HTTP/1.1" 500 49
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources%2Fadmin&mode=755 HTTP/1.1" 500 55
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources%2Fadmin%2Fd6b674b2-380d-4322-a555-bfdf9e61c2cf&mode=755 HTTP/1.1" 500 92
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources%2Fadmin%2Fd6b674b2-380d-4322-a555-bfdf9e61c2cf%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1&mode=755 HTTP/1.1" 500 131
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fresources%2Fadmin%2Fd6b674b2-380d-4322-a555-bfdf9e61c2cf%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1%2F%E4%B8%8A%E4%B8%80%E6%9C%9F%E6%88%91%E4%BB%AC%E8%AE%B2%E4%BA%86%E4%B8%BA%E4%BB%80%E4%B9%88AI%E9%9C%80%E8%A6%81%E4%B8%8A%E4%B8%8B%E6%96%87%E5%B7%A5%E7%A8%8B_2more.md HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "DELETE /api/v1/files?path=%2Flocal%2Ftemp%2F02281736_52328b%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1%2F%E4%B8%8A%E4%B8%80%E6%9C%9F%E6%88%91%E4%BB%AC%E8%AE%B2%E4%BA%86%E4%B8%BA%E4%BB%80%E4%B9%88AI%E9%9C%80%E8%A6%81%E4%B8%8A%E4%B8%8B%E6%96%87%E5%B7%A5%E7%A8%8B_2more.md HTTP/1.1" 200 22
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Flocal%2Ftemp%2F02281736_52328b%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1%2F%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA%E6%98%AFAI%E7%9A%84%E7%81%B5%E9%AD%82.md HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal&mode=755 HTTP/1.1" 500 40
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources&mode=755 HTTP/1.1" 500 49
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources%2Fadmin&mode=755 HTTP/1.1" 500 55
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources%2Fadmin%2Fd6b674b2-380d-4322-a555-bfdf9e61c2cf&mode=755 HTTP/1.1" 500 92
DEBUG:urllib3.connectionpool:http://localhost:1833 "POST /api/v1/directories?path=%2Flocal%2Fresources%2Fadmin%2Fd6b674b2-380d-4322-a555-bfdf9e61c2cf%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1&mode=755 HTTP/1.1" 500 131
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Flocal%2Fresources%2Fadmin%2Fd6b674b2-380d-4322-a555-bfdf9e61c2cf%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1%2F%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA%E6%98%AFAI%E7%9A%84%E7%81%B5%E9%AD%82.md HTTP/1.1" 200 33
DEBUG:urllib3.connectionpool:http://localhost:1833 "DELETE /api/v1/files?path=%2Flocal%2Ftemp%2F02281736_52328b%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1%2F%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA%E6%98%AFAI%E7%9A%84%E7%81%B5%E9%AD%82.md HTTP/1.1" 200 22
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/directories?path=%2Flocal%2Ftemp%2F02281736_52328b%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1 HTTP/1.1" 200 15
DEBUG:urllib3.connectionpool:http://localhost:1833 "DELETE /api/v1/files?path=%2Flocal%2Ftemp%2F02281736_52328b%2Fcd7c4d43-51d5-4390-aa77-b27c40cd1d4f_1 HTTP/1.1" 200 22
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/directories?path=%2Flocal%2Ftemp%2F02281736_52328b HTTP/1.1" 200 15
DEBUG:urllib3.connectionpool:http://localhost:1833 "DELETE /api/v1/files?path=%2Flocal%2Ftemp%2F02281736_52328b HTTP/1.1" 200 22
DEBUG:urllib3.connectionpool:http://localhost:1833 "PUT /api/v1/files?path=%2Fqueue%2FSemantic%2Fenqueue HTTP/1.1" 200 32
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FEmbedding%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FSemantic%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FSemantic%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FSemantic%2Fdequeue HTTP/1.1" 200 2
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FSemantic%2Fsize HTTP/1.1" 200 1
DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/embeddings', 'files': None, 'idempotency_key': 'stainless-python-retry-c5abd14e-c7a1-448d-a0ff-963c107ac974', 'post_parser': <function Embeddings.create.<locals>.parser at 0x11600c900>, 'content': None, 'json_data': {'input': 'Access when Agent needs to follow specific rules. Examples: planner agent has specific planning process requirements, executor agent has execution standards, etc.', 'model': 'BAAI/bge-m3', 'dimensions': 1024, 'encoding_format': 'base64'}}
DEBUG:openai._base_client:Sending HTTP Request: POST https://api.edgefn.net/v1/embeddings
DEBUG:httpcore.connection:connect_tcp.started host='api.edgefn.net' port=443 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.complete return_value=<httpcore._backends.sync.SyncStream object at 0x1163f3b60>
DEBUG:httpcore.connection:start_tls.started ssl_context=<ssl.SSLContext object at 0x1160c3e30> server_hostname='api.edgefn.net' timeout=5.0
DEBUG:httpcore.connection:start_tls.complete return_value=<httpcore._backends.sync.SyncStream object at 0x11691d090>
DEBUG:httpcore.http11:send_request_headers.started request=<Request [b'POST']>
DEBUG:httpcore.http11:send_request_headers.complete
DEBUG:httpcore.http11:send_request_body.started request=<Request [b'POST']>
DEBUG:httpcore.http11:send_request_body.complete
DEBUG:httpcore.http11:receive_response_headers.started request=<Request [b'POST']>
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FSemantic%2Fsize HTTP/1.1" 200 1
DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sat, 28 Feb 2026 09:36:03 GMT'), (b'Content-Type', b'application/json; charset=utf-8'), (b'Content-Length', b'5629'), (b'Connection', b'keep-alive'), (b'x-bs-fcg-request-id', b'2026022817360331268110772229264'), (b'x-siliconcloud-trace-id', b'ti_9kn2aubahwsu7n3kad'), (b'X-Ser', b'i91612_c28775, i2580102_c29070')])
DEBUG:httpcore.http11:receive_response_body.started request=<Request [b'POST']>
DEBUG:httpcore.http11:receive_response_body.complete
DEBUG:httpcore.http11:response_closed.started
DEBUG:httpcore.http11:response_closed.complete
DEBUG:openai._base_client:HTTP Response: POST https://api.edgefn.net/v1/embeddings "200 OK" Headers({'date': 'Sat, 28 Feb 2026 09:36:03 GMT', 'content-type': 'application/json; charset=utf-8', 'content-length': '5629', 'connection': 'keep-alive', 'x-bs-fcg-request-id': '2026022817360331268110772229264', 'x-siliconcloud-trace-id': 'ti_9kn2aubahwsu7n3kad', 'x-ser': 'i91612_c28775, i2580102_c29070'})
DEBUG:openai._base_client:request_id: None
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FEmbedding%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FSemantic%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FEmbedding%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FSemantic%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FEmbedding%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FSemantic%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FEmbedding%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FSemantic%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FEmbedding%2Fsize HTTP/1.1" 200 1
DEBUG:urllib3.connectionpool:http://localhost:1833 "GET /api/v1/files?path=%2Fqueue%2FSemantic%2Fsize HTTP/1.1" 200 1
DEBUG:httpcore.connection:close.started
DEBUG:httpcore.connection:close.complete


没有预期的:
17:36:33 - LiteLLM:DEBUG: logging_worker.py:442 日志打印

OpenViking Version

0.1.18

Python Version

3.13

Operating System

macOS

Model Backend

OpenAI

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions