Skip to content

fix: 规范本体实体与关系名称为 PascalCase 以支持 Zep 图谱构建(fixes #178)#179

Open
i-icc wants to merge 1 commit into666ghj:mainfrom
i-icc:fix/issue178-ontology-pascalcase-for-zep
Open

fix: 规范本体实体与关系名称为 PascalCase 以支持 Zep 图谱构建(fixes #178)#179
i-icc wants to merge 1 commit into666ghj:mainfrom
i-icc:fix/issue178-ontology-pascalcase-for-zep

Conversation

@i-icc
Copy link

@i-icc i-icc commented Mar 13, 2026

Summary / 概要

  • EN: After generating the ontology and clicking the “Build Graph” button, Zep returns HTTP 400 errors indicating that name / target must be in PascalCase.
  • 中文: 在生成本体后点击「构建图谱」,Zep 返回 400 错误,提示 name / target 必须为 PascalCase。

#178

Steps to Reproduce / 复现步骤

  1. Start the backend and frontend.
  2. Upload a document and fill in the simulation requirement.
  3. Click “Generate Ontology”.
  4. Click “Build Graph”.
  5. Check the backend logs and the Zep response.

Expected / 预期行为

  • The graph build should succeed and nodes/edges should be created in Zep without HTTP 400 errors.

Actual / 实际行为

  • Zep returns HTTP 400 errors with messages such as:
    • name must be in PascalCase format ...
    • target must be in PascalCase format ...

Additional context / 补充说明

  • Some ontology entity and edge names (and their source/target) returned by the LLM are in snake_case or lowercase (e.g. works_for, person), which violates Zep’s PascalCase requirement.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant