what's the best way to use custom prompts when querying a GPTSImpleVectorIndex?
I've tried doing something like this but it doesn't seem to actually be using the prompt when i do index_with_query.query()
SUMMARY_PROMPT_TMPL = (
"Context information is below. \n"
"---------------------\n"
"{context_str}"
"\n---------------------\n"
"Always answer the question in bullet points"
)
SUMMARY_PROMPT = SummaryPrompt(SUMMARY_PROMPT_TMPL)
# Build GPTTreeIndex: pass in custom prompt
index_with_query = GPTTreeIndex(documents, summary_template=SUMMARY_PROMPT)
Add a reply
Sign up and join the conversation on Discord