Jina Reader for Search Grounding to Improve Factuality of LLMs

Grounding is essential for GenAI apps. Our new https://s.jina.ai/ allows LLMs to access the latest knowledge from the web, enabling search grounding and making responses more trustworthy.

Flowchart detailing Jina AI's info search using LLM, starting with "when was Jina AI founded?" and various process steps.

Grounding is absolutely essential for GenAI applications.

You have probably seen many tools, prompts, and RAG pipelines designed to improve the factuality of LLMs since 2023. Why? Because the primary barrier preventing enterprises from deploying LLMs to millions of users is the trust: Is the answer genuine, or is it a mere hallucination from the model? This is an industry-wide problem, and Jina AI has been working very hard to solve it. Today, with the new Jina Reader search grounding feature, you can simply use https://s.jina.ai/YOUR_SEARCH_QUERY to search the latest world-knowledge from the web. With this, you are one step closer to improving the factuality of LLMs, making their responses more trustworthy and helpful.

Reader API
Read URLs or search the web, get better grounding for LLMs.

API, demo can be found in the product page

The Factuality Problem of LLMs

We all know LLMs can make things up and harm user trust. LLMs may say things that are not factual (aka hallucinate), especially regarding topics they didn't learn about during training. This could be either new information created since training or niche knowledge that has been "marginalized" during training.

As a result, when it comes to questions like "What's the weather today?" or "Who won the Oscar for Best Actress this year?" the model will either respond with "I don't know" or give you outdated information.

Interactive web interface for querying Jina AI's founding details with input fields, navigation options, and informational no
An example of niche knowledge being "marginalized" during training can be seen when we asked GPT-3.5-turbo "When was Jina AI founded?" and received an incorrect answer. However, when using Reader for search grounding, the same LLM was able to provide the correct answer. In fact, it was precise to the exact date.
Screen interface for inquiring about SpaceX launches with a query field and details about upcoming missions.
An example of new information created since training. We asked GPT-3.5-turbo "When will the next SpaceX launch be?" (today is May 14th 2024) and the model responded with old information back in 2021.

How Jina Reader Helps Better Grounding

Previously, users could easily prepend https://r.jina.ai to read text and image content from a particular URL into an LLM-friendly format and use it for check grounding and fact verification. Since its first release on April 15th, we have served over 18 million requests from the world, suggesting its popularity.

Today we are excited to move the needle further by introducing the search grounding API https://s.jina.ai. By simply prepending it before your query, Reader will search the web and retrieve the top 5 results. Each result includes a title, LLM-friendly markdown (full content! not abstract), and a URL that allows you to attribute the source. Here is an example below, you are also encouraged to try our live demo here.

There are three principles when we designing the search grounding in the Reader:

  • Improve factuality;
  • Access up-to-date information, i.e., world knowledge;
  • Connect an answer to its source.

Besides being extremely easy to use, s.jina.ai is also highly scalable and customizable as it leverages the existing flexible and scalable infrastructure of r.jina.ai. You can set parameters to control the image captioning, filter granularity, etc., via the request headers.

Configuration screen of Reader API with options for API behavior, proxy settings, and cookie forwarding against a dark backgr
Try the interactive code snippet for the advanced usage of Reader API

Jina Reader as a Comprehensive Grounding Solution

Technical flowchart on a black background illustrating the processing of knowledge through various AI-related URLs.

If we combine search grounding (s.jina.ai) and check grounding (r.jina.ai), we can build a very comprehensive grounding solution for LLMs, agents, and RAG systems. In a typical trustworthy RAG workflow, Jina Reader works as follows:

  1. User inputs a question;
  2. Retrieve the latest information from the web using s.jina.ai;
  3. Generate an initial answer with a citation to the search result from the last step;
  4. Use r.jina.ai to ground the answer with your own URL; or read the inline URLs from the source returned from step 3 to get deeper grounding;
  5. Final answer generation and highlight potentially ungrounded claims to the user.

Higher Rate Limit with API Keys

Users can enjoy the new search grounding endpoint for free without authorization. Moreover, when providing a Jina AI API key in the request header (the same key can be used in the Embedding/Reranking API), you can immediately enjoy 200 requests per minute per IP for r.jina.ai and 40 requests per minute per IP for s.jina.ai. The details can be found in the table below:

EndpointDescriptionRate limit w/o API keyRate limit with API keyToken counting schemeAverage latency
r.jina.aiRead a URL return its content, useful for check grounding20 RPM200 RPMBased on the output tokens3 seconds
s.jina.aiSearch on the web return top-5 results, useful for search grounding5 RPM40 RPMBased on the output tokens for all 5 search results30 seconds

Conclusion

We believe grounding is essential for GenAI applications, and building grounded solutions should be easy for everyone. That's why we introduced the new search grounding endpoint, s.jina.ai, which allows developers to easily incorporate world knowledge into their GenAI applications. We want developers to establish user trust, provide explainable answers, and inspire curiosity in millions of users.