Find answers from the community

Updated 3 months ago

Hi what s the best way to feed a tree

Hi, what's the best way to feed a tree data structure as input text to a LLM? I'm trying to summarize a comment section where dependencies between nodes are important - a comment is only replying to its parent comment.
L
J
3 comments
You can setup nodes to have relationships i.e prev and next, so here's an idea.

You could configure each node in a thread to point to the one above/below it.

Then you could use the prev next node postprocessor, which should grab all nodes from a thread when one node from a thread is retrieved πŸ€”
Thanks a lot! I will try that.
Add a reply
Sign up and join the conversation on Discord