Needle-in-a-Haystack Test
Quick definition
A test of whether a model can retrieve a small relevant fact embedded within a very long context.
A test of whether a model can retrieve a small relevant fact embedded within a very long context.
Why it matters: Finding one inserted phrase is easier than real long-document reasoning, so it is only one diagnostic.
Practical example: A model is asked to identify a code word buried in hundreds of pages.
Common use cases: Long-context evaluation, retrieval robustness, and context testing.
Examples
- A model is asked to identify a code word buried in hundreds of pages.
Use cases
- Long-context evaluation, retrieval robustness, and context testing.
Frequently asked questions
What is Needle-in-a-Haystack Test?
A test of whether a model can retrieve a small relevant fact embedded within a very long context.
What should I know before using Needle-in-a-Haystack Test?
Finding one inserted phrase is easier than real long-document reasoning, so it is only one diagnostic. Example: A model is asked to identify a code word buried in hundreds of pages.