Repository navigation
feat: Add You.com API Suite to Nvidia AI-Q #316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rapids-bot
merged 19 commits into
NVIDIA-AI-Blueprints:release/2.2
from
eddy-nassif:main
Jul 15, 2026
Merged
Changes from 12 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
5dea90e
Add You.com API Suite to Nvidia AI-Q
eddy-nassif a3bf0c2
Merge remote-tracking branch 'upstream/develop'
eddy-nassif 31d428b
Merge branch 'develop' into main
AjayThorve 532a9a6
Merge branch 'develop' into main
eddy-nassif 50e21be
Standardize library pinning strategy
eddy-nassif ef10a66
Merge branch 'main' of github.com:eddy-nassif/aiq
eddy-nassif 286cd05
Updated freshness mode 'off' to 'off' instead of None
eddy-nassif ec4a1f2
enforce crawl timeout min and max
eddy-nassif 0102c10
Align stub and _run_with_retries from you_contents with other tools
eddy-nassif 61de9dc
Narrow exception check in you_contents test
eddy-nassif ddd8877
Remove duplication across you_com tests
eddy-nassif fedade1
Merge branch 'develop' into main
eddy-nassif 986496d
Move import
eddy-nassif 5b57768
Keep the repository test suite collectable
eddy-nassif 99cfc83
Bound the default livecrawl output
eddy-nassif 36a4a24
Do not let failures enter the citation registry as sources
eddy-nassif 632097c
Merge branch 'release/2.2' into main
eddy-nassif 0f75c99
add content length minimum
eddy-nassif 379d98e
Merge branch 'release/2.2' into main
AjayThorve File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # You.com Tools | ||
|
|
||
| NAT-based tools for the You.com API. Requires a `YDC_API_KEY` environment variable or `api_key` config. | ||
| Create an API key, claim your free credits, and learn more at https://you.com/docs/quickstart. | ||
|
|
||
| ## Tools | ||
|
|
||
| ### `you_web_search` | ||
|
|
||
| Retrieves relevant search results from the web using You.com [Web Search](https://you.com/docs/api-reference/search/v1-search-post). Supports livecrawl (full page content), | ||
| freshness filtering, safesearch, and news filtering. | ||
|
|
||
| The [Web Search](https://you.com/docs/api-reference/search/v1-search-post) endpoint is designed to return LLM-ready web | ||
| results based on a user’s query. Based on a classification mechanism, it can return web results and news associated with | ||
| your query. If you need to feed an LLM with the results of a query that sounds like What are the latest geopolitical | ||
| updates from India, then this endpoint is the right one for you. | ||
|
|
||
| Key config: | ||
| - `max_results` — number of results (1–100, default 10) | ||
| - `safesearch` - `off`, `moderate`, `strict` | ||
| - `livecrawl_mode` — `off`, `web`, `news`, `all` (default `web`) | ||
| - `livecrawl_format` — `off`, `markdown`, `html` (default `markdown`) | ||
| - `freshness` — `off`, `day`, `week`, `month`, `year` | ||
| - `max_content_length` — truncate livecrawl content to reduce token usage | ||
| - `include_news_results` — True/False whether or not you want to include results categorized as `news` | ||
|
|
||
| ### `you_research` | ||
|
|
||
|
|
||
| [Research](https://you.com/docs/api-reference/research/v1-research) goes beyond a single web search. In response to your | ||
| question, it runs multiple searches, reads through the sources, and synthesizes everything into a thorough, well-cited | ||
| answer. Use it when a question is too complex for a simple lookup, and when you need a response you can actually trust | ||
| and verify. | ||
|
|
||
| Key config: | ||
| - `research_effort` — `lite`, `standard` (default), `deep`, `exhaustive` | ||
|
|
||
| ### `you_finance_research` | ||
|
|
||
| The [Finance Research API](https://you.com/docs/api-reference/finance-research/v1-finance_research) is purpose-built | ||
| for financial questions. Like the Research API, it runs multiple searches, reads through sources, and synthesizes | ||
| everything into a thorough, well-cited answer — but its retrieval index is optimized for financial data: earnings | ||
| reports, SEC filings, analyst coverage, market data, and financial news. Use it when you need credible, sourced answers | ||
| to financial questions: company fundamentals, market trends, competitive analysis, earnings summaries, or macroeconomic research. | ||
|
|
||
| Key config: | ||
| - `research_effort` — `deep` (default) or `exhaustive` only | ||
|
|
||
| ### `you_contents` | ||
|
|
||
| Extracts clean page content from URLs using the You.com [Contents API](https://you.com/docs/api-reference/contents). | ||
| Pass up to 10 URLs and receive their full content — no HTML parsing required. | ||
|
|
||
| Key config: | ||
| - `formats` — list of `markdown`, `html`, `metadata` (default `["markdown", "metadata"]`) | ||
| - `crawl_timeout` — per-URL crawl timeout in seconds (1–60); increase for JavaScript-heavy pages | ||
|
|
||
| We want to hear from you. If you hit a configuration issue or have questions, reach out to us at support@you.com. | ||
| For enterprise or private inquiries, reach out to api@you.com. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| [build-system] | ||
| build-backend = "setuptools.build_meta" | ||
| requires = ["setuptools >= 64", "setuptools-scm>=8"] | ||
|
|
||
| [tool.setuptools] | ||
| packages = ["you_com"] | ||
| package-dir = {"you_com" = "src"} | ||
|
|
||
| [project] | ||
| name = "you-com" | ||
| version = "1.0.0" | ||
| description = "NAT-based You.com tools: web search, contents, research, and finance research" | ||
| readme = "README.md" | ||
| requires-python = ">=3.11,<3.14" | ||
| license = {text = "Apache-2.0"} | ||
| dependencies = [ | ||
| "httpx>=0.24.0", | ||
| "pydantic>=2.0.0", | ||
| "langchain-youdotcom>=0.3.1", | ||
| ] | ||
|
|
||
| [project.entry-points."nat.plugins"] | ||
| you_com = "you_com.register" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| """You.com tools (web search, contents, research, finance research) for NAT.""" | ||
|
|
||
| from .register import you_contents # noqa: F401 | ||
| from .register import you_finance_research # noqa: F401 | ||
| from .register import you_research # noqa: F401 | ||
| from .register import you_web_search # noqa: F401 | ||
|
|
||
| __all__ = [ | ||
| "you_finance_research", | ||
| "you_research", | ||
| "you_web_search", | ||
| "you_contents", | ||
| ] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.