OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[Bug]: 0.4.6 vlm 首页统计为0,web 可以聊。原0.3.4 时正常

Open hmony opened this issue 5 months ago • 4 comments

Bug Description

Image
OpenViking Doctor

  Config:        PASS  /app/.openviking/ov.conf
  Python:        PASS  3.13.14 (>= 3.10 required)
  Native Engine: PASS  variant=native
  AGFS:          PASS  AGFS SDK 0.1.7
  Embedding:     PASS  openai/BAAI/bge-m3 api_base=https://api.siliconflow.cn/v1 dimension=1024 probe ok (dimension=1024)
  VLM:           PASS  openai/nex-agi/Nex-N2-Pro
  Ollama:        PASS  not configured
  Disk:          PASS  175.4 GB free in /app/.openviking/data

All checks passed. 1、跑 doctor 显示有VLM正常,但跑 ov observer system ,认不到。

root@8bb530337689:~# ov observer system
[queue] (healthy)
+----------------+---------+-------------+-----------+----------+--------+-------+
|     Queue      | Pending | In Progress | Processed | Requeued | Errors | Total |
+----------------+---------+-------------+-----------+----------+--------+-------+
|   Embedding    |    0    |      0      |     0     |    0     |   0    |   0   |
|    Semantic    |    0    |      0      |     0     |    0     |   0    |   0   |
| Semantic-Nodes |    0    |      0      |     0     |    0     |   0    |   0   |
|     TOTAL      |    0    |      0      |     0     |    0     |   0    |   0   |
+----------------+---------+-------------+-----------+----------+--------+-------+

[vikingdb] (healthy)
+------------+-------------+--------------+--------+
| Collection | Index Count | Vector Count | Status |
+------------+-------------+--------------+--------+
|  context   |      1      |      62      |   OK   |
|   TOTAL    |      1      |      62      |        |
+------------+-------------+--------------+--------+

[models] (healthy)

Embedding Models:
+-------------+----------+-------+--------+------------+-------+--------------------------+
|    Model    | Provider | Calls | Prompt | Completion | Total |       Last Updated       |
+-------------+----------+-------+--------+------------+-------+--------------------------+
| BAAI/bge-m3 |  openai  |   8   |  4343  |     0      | 4343  | 2026-06-23T04:34:17.218Z |
+-------------+----------+-------+--------+------------+-------+--------------------------+


[lock] (healthy)
No active locks.

[retrieval] (unhealthy)
+---------------------+-----------------+
|       Metric        |      Value      |
+---------------------+-----------------+
|    Total Queries    |        8        |
|    Total Results    |       20        |
|  Avg Results/Query  |       2.5       |
| Zero-Result Queries |        6        |
|  Zero-Result Rate   |      75.0%      |
|      Avg Score      |     0.4667      |
|     Score Range     | 0.3944 - 0.5354 |
|     Rerank Used     |        0        |
|   Rerank Fallback   |        0        |
|  Avg Latency (ms)   |      467.0      |
|  Max Latency (ms)   |     2095.3      |
+---------------------+-----------------+

+--------------+---------+
| Context Type | Queries |
+--------------+---------+
|   unknown    |    8    |
+--------------+---------+

[filesystem] (healthy)
Mount: /local (plugin: localfs)
============================================================
+--------------------+-------+----------+----------+----------+
|     Operation      | Count | Avg (ms) | Min (ms) | Max (ms) |
+--------------------+-------+----------+----------+----------+
|        read        |  103  |  0.232   |  0.023   |  2.158   |
|       write        |  10   |  1.106   |  0.506   |  2.464   |
|      read_dir      |   9   |  0.312   |  0.077   |  0.671   |
|        stat        |  64   |  0.111   |  0.049   |  0.266   |
|        grep        |   2   | 162.553  | 133.135  | 191.970  |
| ensure_parent_dirs |  10   |  0.416   |  0.209   |  0.960   |
+--------------------+-------+----------+----------+----------+

+------------------+-------+
|      Metric      | Value |
+------------------+-------+
| Total Operations |  198  |
|  Total Time (s)  | 0.374 |
| Overall Avg (ms) | 1.889 |
+------------------+-------+


Mount: /queue (plugin: queuefs)
============================================================
+-----------+-------+----------+----------+----------+
| Operation | Count | Avg (ms) | Min (ms) | Max (ms) |
+-----------+-------+----------+----------+----------+
|   mkdir   |   2   |  0.543   |  0.294   |  0.793   |
|   read    | 5120  |  0.757   |  0.189   |  6.880   |
+-----------+-------+----------+----------+----------+

+------------------+-------+
|      Metric      | Value |
+------------------+-------+
| Total Operations | 5122  |
|  Total Time (s)  | 3.878 |
| Overall Avg (ms) | 0.757 |
+------------------+-------+


Mount: /serverinfo (plugin: serverinfofs)
============================================================
No operation statistics recorded yet.



[system] (unhealthy)
Errors: retrieval has errors

2、[models] (healthy) 中只有一个模型

Steps to Reproduce

1、我是docker 部署,hermes agent 也是docker部署,调用方式内置openviking插件,配置方式非本地evn。 执行 hermes memory setup 配置 配置后config.yaml

memory:
  memory_enabled: true
  user_profile_enabled: true
  write_approval: false
  memory_char_limit: 2200
  user_char_limit: 1375
  provider: openviking
  flush_min_turns: 6
  nudge_interval: 10
  openviking:
    use_ovcli_config: true
    ovcli_config_path: /opt/data/.openviking/ovcli.conf.hermes

2、在openviking 下,用ov config 创建了 “ovcli.conf.hermes” ,用的是default 账号,admin 用户权限。 3、在hermes 中/new 后开新session ,能召回内容,但不知道为什vlm没有进行自动化总结,所以vlm Token为0

Expected Behavior

1、另外不知道是否我没有备份成功,通过docker 拉新镜像(0.4.6)后,通过进入docker 下强制降级到0.3.4,执行了备份命令,然后升级到0.4.6 再还原的。在本地也找不到备份文件。

2、系统是Rockchip Rk3566 4G Ram,飞牛OS ARM 版本 可视化 docker 下部署。

Actual Behavior

4、docker compose 的配置

services:
  openviking:
    image: ghcr.io/volcengine/openviking:latest
    container_name: openviking
    ports:
      - "1933:1933"
    volumes:
      - ~/.openviking:/app/.openviking
    restart: unless-stopped

5、执行openviking-server init,初始化的ov.conf,最终的文件如下

{
  "storage": {
    "workspace": "/app/.openviking/data"
  },
  "embedding": {
    "dense": {
      "provider": "openai",
      "model": "BAAI/bge-m3",
      "api_key": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdoc",
      "api_base": "https://api.siliconflow.cn/v1",
      "dimension": 1024
    }
  },
  "vlm": {
    "provider": "openai",
    "model": "nex-agi/Nex-N2-Pro",
    "api_base": "https://api.siliconflow.cn/v1",
    "temperature": 0.0,
    "max_retries": 2,
    "api_key": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdoc"
  },
  "server": {
    "host": "0.0.0.0",
    "root_api_key": "a4nxxxxxxxxxxxxxxxxxxxxxxxxxDG"
  }
}

Minimal Reproducible Example


Error Logs


OpenViking Version

0.4.6

Python Version

3.13.14

Operating System

Linux

Model Backend

None

Additional Context

No response

hmony avatar Jun 23 '26 05:06 hmony

这个token统计信息是维护在内存里的,重启会丢失

qin-ctx avatar Jun 23 '26 06:06 qin-ctx

这个token统计信息是维护在内存里的,重启会丢失

不是,重启后embedding Token 的还在的。是一直VLM的Token都是0,根本没有加过1

Image

hmony avatar Jun 23 '26 06:06 hmony

这个token统计信息是维护在内存里的,重启会丢失

不是,重启后embedding Token 的还在的。是一直VLM的Token都是0,根本没有加过1

Image

web 界面这个是存在sqlite里的,重启前这里有值吗

qin-ctx avatar Jun 24 '26 11:06 qin-ctx

Image

我也是这个问题,最近几天一直显示是0。

但我查过我的供应商调用记录,肯定是有 vlm 调用的。相关功能是正常的。

dozer47528 avatar Jul 24 '26 07:07 dozer47528