Skip to main content

SearchApi Tool

The SearchApi allows developers to retrieve results from search engines such as Google, Google Scholar, YouTube, YouTube transcripts, and more, and can be used as in Langflow through the SearchApi tool.

info

To use the SearchApi, you must first obtain an API key by registering at SearchApi's website.

In the given example, we specify engine as youtube_transcripts and provide a video_id.

info

All engines and parameters can be found in SearchApi documentation.

The RetrievalQA chain processes a Document along with a user's question to return an answer.

tip

In this example, we used ChatOpenAI as the LLM, but feel free to experiment with other Language Models!

The RetrievalQA takes CombineDocsChain and SearchApi tool as inputs, using the tool as a Document to answer questions.

info

Learn more about the SearchApi here.

⛓️ Langflow Example

Docusaurus themed imageDocusaurus themed image

Download Flow

LangChain Components 🦜🔗

Hi, how can I help you?