← All questions
Retrieval & EmbeddingsHard· Quality Control· Prompt Engineering· Synthetic Data

How do InPars contrastive prompting and Promptagator co...

These mechanisms operate at different stages of the pipeline. Contrastive prompting attempts to improve the quality of generated pairs at the source by guiding the LLM’s output distribution. Consistency filtering acts as a safety net, removing garbage pairs that fail to perform in a preliminary retrieval test. Using both is often optimal, as better prompts reduce the amount of filtering required later.

Code playground (Python)