Hey there π got another questions for y'all:
PyMuPDFReader = download_loader("PDFReader")
loader = PyMuPDFReader()
documents = loader.load_data(file=Path("./test-doc2.pdf"))
# Create and store Summray index
storage_context = StorageContext.from_defaults()
index = DocumentSummaryIndex.from_documents(
documents,
service_context=service_context,
storage_context=storage_context,
show_progress=True,
)
query_engine = index.as_query_engine()
result = query_engine.query("Write an extensive summary of this context for me?")
print(result)
How can I make sure that the summary that it writes is at longer than 20 sentences. Or how do I make sure it uses the full 4096 tokens for the response?