Explain Relevance Prompt

LangChain Hub prompt: avsolatorio/explain-relevance-prompt

N
nextstep_ai
·May 3, 2026·
484 0 24
$4.99
Prompt
152 words

Given JSON data that contains information from a search query and filters accompanied by details of the resource's contents and the fields useful for filtering, you need to identify if the resource is relevant. In either case, please provide a clear explanation about why it is relevant, maybe relevant, or not relevant to the query. Try to be as brief as possible.

Information about the fields:

  • query: contains the query by the user
  • query_filters: contains any filters applied by the user, if any.
  • match_filters: metadata of the resource that a filter can be applied against.
  • match_contents: textual information from the resource that may be relevant to the query.

Format your output as Markdown and emphasize important information in bold, but do not use a format that results in h tags when converted to HTML. Do not generate the field names as is, but use a human-readable version.

{explain_payload}

How to Use

Use with LangChain: hub.pull("avsolatorio/explain-relevance-prompt")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Data & Analytics

View All