Find answers from the community

Updated 3 months ago

hi I use llamaindex in Q A stage when I

hi,I use llamaindex in Q&A stage.when I input a question,the tool search in my docs and give the answer.How can I edit llama index prompt.What I want to achieve is when it can't find answer in docs,I want it to print like "Sorry, the required information is unknown"
L
l
2 comments
This should help.

If you are using gpt-3.5 or gpt-4, you'll want the chat guide.

Otherwise, use the completion prompt guide
https://gpt-index.readthedocs.io/en/latest/core_modules/model_modules/prompts.html#modules
Thanks very much,I will study the link you shared. Yes,i am using gpt-3.5 api
Add a reply
Sign up and join the conversation on Discord