Find answers from the community

Updated 3 months ago

Is there a map reduce document

Is there a map reduce document summarizer in LlamaIndex? i.e. I want to iterate over several (hundreds) of documents and summarize them together into one
L
C
2 comments
that would be the summary index. Specifically with tree_summarize

Plain Text
from llama_index import SummaryIndex

index = SummaryIndex.from_documents(documents)

query_engine = index.as_query_engine(response_mode="tree_summarize", use_async=True)
response = query_engine.query("Summarize the provided text.")
Add a reply
Sign up and join the conversation on Discord