Find answers from the community

Updated 2 years ago

yes they do i just realized it s not

yes they do! i just realized it's not reflected in the api docs: https://gpt-index.readthedocs.io/en/latest/reference/indices/vector_store_query.html - i will put out a fix. we have a default refine prompt under the hood; if you want to customize in the meantime use GPTSimpleVectorIndexQuery as a reference (e.g. do index.query(..., refine_template=custom_refine_template))
m
j
5 comments
hey jerry, should i follow one of your PRs for this one?
also is the usage going to be something like this --
Plain Text
response = index.query('initial question', verbose=True, mode="embedding")

...

# follow up question
response = index.query('', 'follow up question to the above', verbose=True, mode="embedding")
bump, when you get a chance. thanks for the initial reply
you have to also specify refine_template=custom_refine_template in the query call
and define your own custom_refine_template = RefinePrompt("<refine_template>")
i just realized i gave you the wrong link above. it should be this:
https://gpt-index.readthedocs.io/en/latest/how_to/custom_prompts.html
the list of prompt api references is here: https://gpt-index.readthedocs.io/en/latest/reference/prompts.html
Add a reply
Sign up and join the conversation on Discord