Find answers from the community

s
F
Y
a
P
Updated last year

Summarize

a basic question - How can I summarize over bunch of text nodes. I have selected nodes from weviate alrady , all i want is to summarize over those nodes. Router query works fine but it makes bunch of LLM Calls ( showing summaries to LLM and then picking one node and then another LLM call for summary , few embedding calls as well in between ) that I want to avoid . Is there a llama component I can use ?
L
1 comment
Plain Text
index = ListIndex(nodes)

summary = index.as_query_engine(response_mode="tree_summarize").query("Summarize this context.")
Add a reply
Sign up and join the conversation on Discord