Step-by-Step Guides

Serp API Tool

Serp API Tool

The Serp API (Search Engine Results Page) allows developers to scrape results from search engines such as Google, Bing and Yahoo, and can be used as in Langflow through the Search component.

INFO

To use the Serp API, you first need to sign up Serp API for an API key on the provider's website.

Here, the ZeroShotPrompt component specifies a prompt template for the ZeroShotAgent. Set a Prefix and Suffix with rules for the agent to obey. In the example, we used default templates.

The LLMChain is a simple chain that takes in a prompt template, formats it with the user input, and returns the response from an LLM.

TIP

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

The ZeroShotAgent takes the LLMChain and the Search tool as inputs, using the tool to find information when necessary.

INFO

Learn more about the Serp API here.

⛓️ Langflow Example

LANGCHAIN COMPONENTS 🦜🔗

LANGCHAIN COMPONENTS 🦜🔗

Getting Started

👋 Welcome to Langflow
📦 How to install?
🤗 HuggingFace Spaces
🎨 Creating Flows

Guidelines

Sign up and Sign in
API Keys
Assynchronous Processing
Component
Features
Collection
Prompt Customization
Chat Interface
Chat Widget
Custom Components

Step-by-Step Guides

Async API
Integrating documents with prompt variables
Building chatbots with System Message
Integrating Langfuse with Langflow

Examples

FlowRunner Component
Conversation Chain
Buffer Memory
MidJourney Prompt Chain
CSV Loader
Serp API Tool
Multiple Vector Stores
Python Function
📚 How to Upload Examples?

Deployment

Deploy on Google Cloud Platform

Contributing

How to contribute?
GitHub Issues
Community

Search Docs…

Search Docs…