Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
hello bros
hello bros
Inactive
0
Follow
Q
Quentin
2 years ago
Β·
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
Share
Open in Discord
M
Mikko
2 years ago
hi Quentin, what would be the use case?
Q
Quentin
2 years ago
hi Mikko
Q
Quentin
2 years ago
Can I got both the title and summary from a document by one query?
Q
Quentin
2 years ago
Or I must query twice use an index?
M
Mikko
2 years ago
Do you need an AI generated title or why don't you use known titles?
Q
Quentin
2 years ago
we have difference formatted documents. I need AI to read these documents and generate title,summary,author.
Q
Quentin
2 years ago
I don't know the title,some files from disk.some from url of a news
M
Mikko
2 years ago
I see. Probably you will get best results by using many queries and asking for that information separately
Q
Quentin
2 years ago
OK. Do you mean I need to call query function repeatedly passing different prompts?
Q
Quentin
2 years ago
Thank you.
M
Mikko
2 years ago
Yeah
Add a reply
Sign up and join the conversation on Discord
Join on Discord