You.com
you.com API is a suite of tools designed to help developers ground the output of LLMs in the most recent, most accurate, most relevant information that may not have been included in their training dataset.
Setup
The retriever lives in the langchain-community
package.
You also need to set your you.com API key.
%pip install --upgrade --quiet langchain-community
import os
os.environ["YDC_API_KEY"] = ""
# For use in Chaining section
os.environ["OPENAI_API_KEY"] = ""
## ALTERNATIVE: load YDC_API_KEY from a .env file
# !pip install --quiet -U python-dotenv
# import dotenv
# dotenv.load_dotenv()
It's also helpful (but not needed) to set up LangSmith for best-in-class observability
# os.environ["LANGCHAIN_TRACING_V2"] = "true"
# os.environ["LANGCHAIN_API_KEY"] = getpass.getpass()
# os.environ["LANGCHAIN_PROJECT"] = 'Experimentz'