Skip to content

Commit

Permalink
updated requirements and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Liang committed Jan 31, 2024
1 parent 23b6c68 commit 181298c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
23 changes: 15 additions & 8 deletions README.md
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 removed __pycache__/test.cpython-310.pyc
Binary file not shown.
9 changes: 6 additions & 3 deletions requirements.txt
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

0 comments on commit 181298c

Please sign in to comment.