-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/vectorstore_myscale
- Loading branch information
Showing
48 changed files
with
1,557 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Yeager.ai | ||
|
||
This page covers how to use [Yeager.ai](https://yeager.ai) to generate LangChain tools and agents. | ||
|
||
## What is Yeager.ai? | ||
Yeager.ai is an ecosystem designed to simplify the process of creating AI agents and tools. | ||
|
||
It features yAgents, a No-code LangChain Agent Builder, which enables users to build, test, and deploy AI solutions with ease. Leveraging the LangChain framework, yAgents allows seamless integration with various language models and resources, making it suitable for developers, researchers, and AI enthusiasts across diverse applications. | ||
|
||
## yAgents | ||
Low code generative agent designed to help you build, prototype, and deploy Langchain tools with ease. | ||
|
||
### How to use? | ||
``` | ||
pip install yeagerai-agent | ||
yeagerai-agent | ||
``` | ||
Go to http://127.0.0.1:7860 | ||
|
||
This will install the necessary dependencies and set up yAgents on your system. After the first run, yAgents will create a .env file where you can input your OpenAI API key. You can do the same directly from the Gradio interface under the tab "Settings". | ||
|
||
`OPENAI_API_KEY=<your_openai_api_key_here>` | ||
|
||
We recommend using GPT-4,. However, the tool can also work with GPT-3 if the problem is broken down sufficiently. | ||
|
||
### Creating and Executing Tools with yAgents | ||
yAgents makes it easy to create and execute AI-powered tools. Here's a brief overview of the process: | ||
1. Create a tool: To create a tool, provide a natural language prompt to yAgents. The prompt should clearly describe the tool's purpose and functionality. For example: | ||
`create a tool that returns the n-th prime number` | ||
|
||
2. Load the tool into the toolkit: To load a tool into yAgents, simply provide a command to yAgents that says so. For example: | ||
`load the tool that you just created it into your toolkit` | ||
|
||
3. Execute the tool: To run a tool or agent, simply provide a command to yAgents that includes the name of the tool and any required parameters. For example: | ||
`generate the 50th prime number` | ||
|
||
You can see a video of how it works [here](https://www.youtube.com/watch?v=KA5hCM3RaWE). | ||
|
||
As you become more familiar with yAgents, you can create more advanced tools and agents to automate your work and enhance your productivity. | ||
|
||
For more information, see [yAgents' Github](https://github.com/yeagerai/yeagerai-agent) or our [docs](https://yeagerai.gitbook.io/docs/general/welcome-to-yeager.ai) | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "487607cd", | ||
"metadata": {}, | ||
"source": [ | ||
"# Google Places\n", | ||
"\n", | ||
"This notebook goes through how to use Google Places API" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 10, | ||
"id": "8690845f", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#!pip install googlemaps" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 12, | ||
"id": "fae31ef4", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"import os\n", | ||
"os.environ[\"GPLACES_API_KEY\"] = \"\"" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 13, | ||
"id": "abb502b3", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"from langchain.tools import GooglePlacesTool" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 14, | ||
"id": "a83a02ac", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"places = GooglePlacesTool()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 16, | ||
"id": "2b65a285", | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"data": { | ||
"text/plain": [ | ||
"\"1. Delfina Restaurant\\nAddress: 3621 18th St, San Francisco, CA 94110, USA\\nPhone: (415) 552-4055\\nWebsite: https://www.delfinasf.com/\\n\\n\\n2. Piccolo Forno\\nAddress: 725 Columbus Ave, San Francisco, CA 94133, USA\\nPhone: (415) 757-0087\\nWebsite: https://piccolo-forno-sf.com/\\n\\n\\n3. L'Osteria del Forno\\nAddress: 519 Columbus Ave, San Francisco, CA 94133, USA\\nPhone: (415) 982-1124\\nWebsite: Unknown\\n\\n\\n4. Il Fornaio\\nAddress: 1265 Battery St, San Francisco, CA 94111, USA\\nPhone: (415) 986-0100\\nWebsite: https://www.ilfornaio.com/\\n\\n\"" | ||
] | ||
}, | ||
"execution_count": 16, | ||
"metadata": {}, | ||
"output_type": "execute_result" | ||
} | ||
], | ||
"source": [ | ||
"places.run(\"al fornos\")" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "66d3da8a", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3 (ipykernel)", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.1" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
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
Oops, something went wrong.