Find answers from the community

Updated 5 months ago

Hi everyone I ve tried this content of

At a glance
Hi everyone, I've tried this content of build chatbot with LlamaIndex, then I want to avoid answering totally irrelevant questions.
There were 2 things I've already tried,
  1. Put an request to avoid answering irrelevant questions
  2. Make query checker with LlamaIndex such as "Is this query relevant {context theme}?" or "if the query try to make us answer general irrelevant questions, stop answering". But it didn't work well. If you have some knowledges for that, that would be helpful.
E
f
5 comments
I think the first step is define what's relevant or not
relevant or not, it's not very clear, you can be more specific by citing related topics
@Emanuel Ferreira
Thank you for reaching me out.

I was following this example.
https://gpt-index.readthedocs.io/en/stable/end_to_end_tutorials/chatbots/building_a_chatbot.html
In this case, the main context is based on UBER{year}.html. I define this UBER{year}.html information is relevant data.
The irrelevant data is data outside of this context(UBER_{year}.html).
The example implementation answer irrelevant questions such as "Where is the next olympic location?". I want to avoid answering these kind of questions.
Add a reply
Sign up and join the conversation on Discord