镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

feat(llm): knowledge graph construction by llm - #7

Merged
simon824 merged 8 commits into
apache:mainfrom
Zony7:text2kg-branch
Oct 20, 2023
Merged

simon824 merged 8 commits into
apache:mainfrom
Zony7:text2kg-branch

Conversation

@Zony7

@Zony7 Zony7 commented Oct 15, 2023

Copy link
Copy Markdown
Contributor

close #6

Feature Description (功能描述)

Using llm to construct a knowledge graph(text2kg) involves three steps:

  1. Extracting triples and schemas from unstructured text(text2data)
  2. Disambiguating data(data2data)
  3. Storing triples and schemas in the hugegraph database(data2kg)

Text2kg is implemented through chain programming and can be tested step by step in the text2kg.py

@javeme javeme left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice feature~ Thanks for your contribution.

Comment thread hugegraph-llm/api/src/llm/basellm.py Resolved
Comment thread hugegraph-llm/api/src/llm/basellm.py Resolved
Comment thread hugegraph-llm/api/src/llm/basellm.py Resolved
Comment thread hugegraph-llm/api/src/llm/basellm.py Resolved
Comment thread hugegraph-llm/api/src/llm/openai.py Resolved
Comment thread .idea/vcs.xml Resolved
@imbajin
imbajin self-requested a review October 18, 2023 04:21
@imbajin imbajin changed the title [Feature] knowledge graph construction by llm feat(llm): knowledge graph construction by llm Oct 18, 2023
Comment thread hugegraph-llm/examples/build_kg_test.py Resolved
Comment thread hugegraph-llm/examples/build_kg_test.py Resolved
Comment thread hugegraph-llm/examples/build_kg_test.py Resolved
Comment thread hugegraph-llm/examples/build_kg_test.py Resolved
Comment thread hugegraph-llm/examples/build_kg_test.py Resolved
Comment thread hugegraph-llm/README.md Resolved
Comment thread hugegraph-llm/README.md Resolved
Comment thread hugegraph-llm/README.md Resolved
Comment thread hugegraph-llm/README.md Resolved
Comment thread hugegraph-llm/README.md Resolved
Comment thread hugegraph-llm/README.md Resolved
Comment thread hugegraph-llm/README.md Resolved
Comment thread hugegraph-llm/README.md Resolved

@simon824 simon824 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@simon824
simon824 merged commit e6136ae into apache:main Oct 20, 2023
@Zony7
Zony7 deleted the text2kg-branch branch January 24, 2024 06:19
haohao0103 pushed a commit to haohao0103/incubator-hugegraph-ai that referenced this pull request Jun 30, 2026
* add hugegraph-llm text2kg

* fix codestyle

* Delete .idea directory

* Update build_kg_test.py(delete api)

* fix codestyle

---------

Co-authored-by: imbajin <jin@apache.org>
haohao0103 added a commit to haohao0103/incubator-hugegraph-ai that referenced this pull request Jul 1, 2026
Systematic audit of ALL operator constructors/methods against actual source:
- Fix apache#4: AsyncVLMPipeline(max_concurrent=2) → AsyncVLMPipeline(config=VLMPipelineConfig(max_concurrent=2))
- Fix apache#5: registry._providers → registry._registry (VLMProviderRegistry uses _registry not _providers)
- Fix apache#6: ChunkSchema → ChunkSchemaOperator (class name mismatch)
- Fix apache#7: OmmlToLatexConverter → OMMLParser + convert_omml_to_latex (no such class exists)
- Fix apache#8: SidecarPlaceholderCreator → import render_table_tag/render_drawing_tag/render_equation_tag/render_template (module has functions only, no class)
- Fix apache#9: SidecarIR → import IRDoc/IRBlock/IRDrawing/IRTable/IREquation (module has dataclasses, not SidecarIR class)
- Fix apache#10: SidecarWriter → import write_sidecar (module has function, not SidecarWriter class)
- Fix apache#11: SidecarBackfill → SidecarBackfillOperator (class name mismatch)
- Fix apache#12: host='localhost:8080' → host='http://127.0.0.1:8080' (KGBuilder and Retriever need http:// prefix)

Note: omml_to_latex module has a source-level bug (_Element = defusedxml.ElementTree.Element
uses wrong reference after submodule import) — the walkthrough gracefully catches this via try/except.

Verified: 18/18 operators activated, Step 4 has 1 _note (omml_to_latex import fallback, not a crash).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

[Feature] knowledge graph construction by llm

4 participants