Skip to content

Read graph tool should be more efficient instead of pulling every entity in the database #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
thesobercoder opened this issue Jun 9, 2025 · 0 comments

Comments

@thesobercoder
Copy link

thesobercoder commented Jun 9, 2025

Guidelines

Please note that GitHub issues are only meant for bug reports/feature requests.
Before sending unsolicited pull requests, please open a feature request to discuss your proposal.

If you have questions on usage, please ask on the Discussion Forum instead of creating an issue here.

Feature description (Mandatory)

Currently, the read graph tool returns every possible entity saved in the database. Although this works, it is not an efficient strategy as this will result in too many token usages.

Considered alternatives

I think like search nodes, the read graph should also perform full text searches to begin with on the search index to limit the number of results.

How this feature can improve the project?

This will greatly improve the token usage and not pollute the LLM context with unnecessary context.

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

No branches or pull requests

1 participant