Skip to content

[Graph] 图谱构建失败:Zep 返回 name/target must be in PascalCase format #178

@i-icc

Description

@i-icc

现象

上传文档并生成本体后,点击「构建图谱」时失败。后端日志中出现 Zep API 的 400 错误:
name must be in PascalCase format ... target must be in PascalCase format ...

原因

LLM 返回的本体定义中,实体类型名、关系类型名、以及 source_targets 的 source/target 可能为 snake_case(如 works_for)、小写(如 person)或含非法字符。Zep Cloud 要求这些字段必须为 PascalCase(如 WorksFor, Person),因此会返回 400。

期望行为

在将本体提交给 Zep 之前,在后端对上述字段进行 PascalCase 正規化,使图谱构建能够成功。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Memory LayerAny questions related to RAG, GraphRAG and LLM Memory.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions