forked from askrella/whatsapp-chatgpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request askrella#210 from juliandaz11/master
Sending text and audio at the same time
- Loading branch information
Showing
5 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
# LangChain | ||
|
||
## About | ||
|
||
Use this handler to allow GPT to interact with other sources of data, ie. the internet, or different mediums like pdfs and images. Ideally the user doesn't have to differentiate between GPT instances that can and cannot use external data sources, but we'll keep them separate for ease of implementation for now. | ||
|
||
## Example | ||
|
||
In the following example, GPT uses `SerpAPI` as a tool to access Google Search API. You can use `RequestsGetTool` and parse the HTML if you don't have a [SerpAPI](https://serpapi.com/) API key. | ||
>!lang nba game april 11st 2023 | ||
> | ||
|
||
> !lang nba game april 11st 2023 | ||
> | ||
> // Uses SerpAPI or RequestsGetTool to access the search engine, parse results in either JSON or HTML, and have GPT interpret the best answer for the prompt. | ||
>"The result of the NBA games on April 11st 2023 is Minnesota Timberwolves vs Los Angeles Lakers" | ||
> "The result of the NBA games on April 11st 2023 is Minnesota Timberwolves vs Los Angeles Lakers" | ||
## Tools | ||
|
||
Abstractions for GPT to interact with to interact with external data sources. For example, both `RequestGetTools` and `SerpAPI` allows GPT to access the internet. | ||
|
||
See other tools in the LangChain [Tools section](https://js.langchain.com/docs/modules/agents/tools/). | ||
|
||
|
||
## References | ||
* [LangChain in JS](https://js.langchain.com/docs/) | ||
* [LangChain in Python](https://python.langchain.com/en/latest/index.html) | ||
|
||
- [LangChain in JS](https://js.langchain.com/docs/) | ||
- [LangChain in Python](https://python.langchain.com/en/latest/index.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters