Find answers from the community

Updated last year

Custom Prompt

The SummaryIndex supports custom prompts?

In the docs we can find the following sentence "Some indices use different types of prompts during construction (NOTE: the most common ones, VectorStoreIndex and SummaryIndex, don’t use any).".

Let's assume that my business logic is the following:

Plain Text
...

index = SummaryIndex.from_documents(documents)
query_engine = index.as_query_engine()
answer = query_engine.query(question)

...


Can I use a custom prompt at all?
E
P
4 comments
@Emanuel Ferreira thanks for looking! I actually had a look, but assumed that there's a reason why SummaryIndex is documented a long SimpleWebPageReader, or maybe I mixed things up. I'll give it a try!
Add a reply
Sign up and join the conversation on Discord