Skip to content

feat(python): discover actual entity and relationship types from the …#65

Merged
beinan merged 2 commits into
lance-format:mainfrom
ChunxuTang:qa
Dec 15, 2025
Merged

feat(python): discover actual entity and relationship types from the …#65
beinan merged 2 commits into
lance-format:mainfrom
ChunxuTang:qa

Conversation

@ChunxuTang

Copy link
Copy Markdown
Collaborator

…table

Currently, the Python-based knowledge graph's QA component accepts the manually created graph config and the real LLM (or Heuristic) extracted entity and relationship types. The two schemas are not necessarily the same and can cause issues in generating and running Cypher queries. For example, the manually created graph config may use WORK_AT, but the LLM extracted relationship type may be WORK_FOR.

This PR addresses the issue by always discovering the actual entity and relationship types first (cache is used to improve performance) and leveraging the manually created graph config as a fallback.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@beinan beinan merged commit 1bbc849 into lance-format:main Dec 15, 2025
2 checks passed
@ChunxuTang ChunxuTang deleted the qa branch December 27, 2025 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants