https://www.boundaryml.com logo
🟡 Best Format to Present Graph Data for LLM in BA...
# questions
r
What is the best way - the best format? - to present graph data - nodes and edges - to an LLM in BAML? > I have to do something a little different for this entity resolution I am working on now - I have to put subgraphs inside blocks, lists of nodes and edges. How do I best encode a graph for an LLM in BAML land? I read this paper a while ago but it doesn't even show the format - https://arxiv.org/abs/2310.01089
You guys could come up with a canonical graph format that works best - that would be BAML POWER!!! cc @prashanth 😄
This paper
InstructGLM
suggests another format: https://arxiv.org/pdf/2308.07134
This stuff is from 2023 though, it can't be state of the art.
h
I have not tried it, but there was a paper with code that actually makes the graph into text. https://arxiv.org/pdf/2310.04560 https://github.com/google-research/talk-like-a-graph/tree/main
Ah, sorry I missed the "in BAML" part.
r
Yeah, that paper is interesting but I really just need an efficient serialization format.
5 Views