Find answers from the community

Updated 3 months ago

hello bros

hello bros,
Can I pass two prompts by one query? How to do it?
index = GPTListIndex(documents)
response = index.query(prompt, response_mode="tree_summarize")
M
Q
11 comments
hi Quentin, what would be the use case?
Can I got both the title and summary from a document by one query?
Or I must query twice use an index?
Do you need an AI generated title or why don't you use known titles?
we have difference formatted documents. I need AI to read these documents and generate title,summary,author.
I don't know the title,some files from disk.some from url of a news
I see. Probably you will get best results by using many queries and asking for that information separately
OK. Do you mean I need to call query function repeatedly passing different prompts?
Add a reply
Sign up and join the conversation on Discord