add docs
This commit is contained in:
parent
24273e3931
commit
5d2a29a436
223 changed files with 6210 additions and 20294 deletions
45
docs/serp-api.md
Normal file
45
docs/serp-api.md
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
`Search` is a search engine useful to answer questions about current events. To use the Serp API, you first need to sign up [Serp API](https://serpapi.com/){.internal-link target=\_blank} for an API key on the provider's website.
|
||||
|
||||
<br>
|
||||
|
||||
The Serp API (Search Engine Results Page API) is an API (Application Programming Interface) that allows developers to scrape search engine results from various search engines such as Google, Bing, Yahoo, and more.
|
||||
|
||||
<br>
|
||||
|
||||
{width=50%}
|
||||
{width=50%}
|
||||
|
||||
<br>
|
||||
|
||||
To understand more, check out the LangChain [Search](https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html){.internal-link target=\_blank} documentation.
|
||||
|
||||
---
|
||||
|
||||
### ⛓️LangFlow example
|
||||
|
||||
{width=100%}
|
||||
{width=100%}
|
||||
|
||||
<br>
|
||||
|
||||
[Download Flow](data/Serp_api.json){: .md-button download="Serp_api"}
|
||||
|
||||
<br>
|
||||
|
||||
`ZeroShotPrompt` creates a prompt template for Zero-Shot Agent. You can set the _Prefix_ and _Suffix_. The _Prefix_ is the text that will be added before the input text. The _Suffix_ is the text that will be added after the input text. In the example, we used the _default_ that is automatically set.
|
||||
|
||||
<br>
|
||||
|
||||
For the example, we used `OpenAI` as the LLM, but you can use any LLM that has an API. Make sure to get the API key from the LLM provider. For example, [OpenAI](https://platform.openai.com/){.internal-link target=\_blank} requires you to create an account to get your API key.
|
||||
|
||||
<br>
|
||||
|
||||
Check out the [OpenAI](https://platform.openai.com/docs/introduction/overview){.internal-link target=\_blank} documentation to learn more about the API and the options that contain in the node.
|
||||
|
||||
<br>
|
||||
|
||||
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.
|
||||
|
||||
<br>
|
||||
|
||||
`ZeroShotAgent` is an agent Agent for the MRKL chain. It uses a Zero Shot LLM to generate a response.
|
||||
Loading…
Add table
Add a link
Reference in a new issue