Skip to content
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

Graph Representation or Knowledge Graph #25

Open
kumam92 opened this issue May 13, 2024 · 1 comment
Open

Graph Representation or Knowledge Graph #25

kumam92 opened this issue May 13, 2024 · 1 comment

Comments

@kumam92
Copy link

kumam92 commented May 13, 2024

Thanks for this interesting project using the open-source model. I have a question about the representation choice. Inspired by your blog post example, suppose I have one single sentence, "Mary will try not to eat lamb," and for this single sentence, we generate a graph as "Mary--avoids-->lamb". Can we still use this as a Knowledge graph representation, as it seems more like a triplets graph representation, not KG? Also, KG and graph of concepts were used interchangeably, so this clarification will help me in this regard.

@thusinh1969
Copy link

It is GRAPH representation if you deal with nodes/edges appropriately.
I merged/concatenate/dedup same nodes and edges. Then vectorized them.

We can extend question into multi questions (use simple whatever LLM), then search though NODES only. from these NODES then we search ALL EDGES connected (1 hop, more if you will, I can do 3 and it took sometime). Run rerank (we build our own with Gemms-2-2B) wirh series of above extended questions, then voila you have just queried a graph knowledge DB.

Cheers,
Steve

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

2 participants