LlamaIndex
LlamaIndex includes a You.com retriever integration through the llama-index-retrievers-you package. It uses You.com’s Web Search API to retrieve relevant web and news results, converting them into LlamaIndex’s standard NodeWithScore format for use with query engines, agents, and other components.
Run this entire example as a Jupyter Notebook.
Getting Started
Usage
Basic
Async
News
Query engine
Set up the retriever and retrieve web results:
Each result includes the page text along with metadata such as url, title, description, page_age, thumbnail_url, and source_type (either "web" or "news").
Customizing Search Parameters
You can pass optional parameters to control the search behavior: