-
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.
- Loading branch information
Chen Liang
committed
Jan 31, 2024
1 parent
23b6c68
commit 181298c
Showing
3 changed files
with
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
# The work is inspired by [JayZeeDesign researcher-gpt](https://github.com/JayZeeDesign/researcher-gpt) | ||
|
||
## app.py is the original file | ||
|
||
## app2.py is the file created by me | ||
* app.py is the original file | ||
* app2.py is the file created by me based on langchain v0.2 | ||
|
||
## Key points | ||
|
||
1. To test FastAPI, go to the swagger file under http://127.0.0.1/8000/docs | ||
|
||
2. Import multiple versions of pydrantic | ||
|
||
3. Use StructuredTool to create tools for agent | ||
1. To test the FastAPI service | ||
* run uvicorn app2:api --reload | ||
* go to the swagger file under http://127.0.0.1/8000/docs | ||
2. To run as streamlit webapp | ||
* uncomment the app function | ||
* run streamlit run app2.py | ||
3. Import multiple versions of pydrantic | ||
4. Use StructuredTool to create custom tools for agent | ||
5. Create custom agent with custom tools and memory | ||
6. Use [Apify](https://apify.com) because | ||
* browserless costs too much | ||
* Apify actors are easier to integrate | ||
* But Apify webcrawler actor already summarizes the web content to some extent |
Binary file not shown.
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,7 +1,10 @@ | ||
fastapi[all] | ||
openai | ||
python-dotenv | ||
pydantic | ||
openai | ||
langchain | ||
langchain_openai | ||
bs4 | ||
tiktoken | ||
tiktoken | ||
requests | ||
fastapi[all] | ||
streamlit |