Using the Search API with an LLM
OpenAI LLM Integration
Before You Get Started
To use the You.com Search API, you will need an API key. Please visit api.you.com for more details.
Enriching OpenAI’s LLM with the You.com Search API and LangChain
Follow these steps to query You.com’s Search API and enrich LLM responses with our snippets.
You will need to have the environment variables AUTH_KEY
and OPENAI_API_KEY
set to follow along with this guide.
1. Install
2. Create a LangChain RetrievalQA chain using YouRetriever and GPT-3.5 Turbo
main.py
3. Now run the chain
main.py