Go to file
2023-03-18 06:05:02 +00:00
assets refactor: handle file 2023-03-18 06:05:02 +00:00
tools refactor: handle file 2023-03-18 06:05:02 +00:00
.gitignore refactor: handle file 2023-03-18 06:05:02 +00:00
agent.py refactor: handle file 2023-03-18 06:05:02 +00:00
docker-compose.yml refactor: handle file 2023-03-18 06:05:02 +00:00
Dockerfile refactor: handle file 2023-03-18 06:05:02 +00:00
env.py feat: init 2023-03-17 15:55:15 +00:00
handler.py refactor: handle file 2023-03-18 06:05:02 +00:00
llm.py feat: init 2023-03-17 15:55:15 +00:00
main.py refactor: handle file 2023-03-18 06:05:02 +00:00
README.md refactor: handle file 2023-03-18 06:05:02 +00:00
requirements.txt refactor: handle file 2023-03-18 06:05:02 +00:00
s3.py feat: init 2023-03-17 15:55:15 +00:00
utils.py refactor: handle file 2023-03-18 06:05:02 +00:00

Usage

S3

  1. Create a bucket.
  2. Turn off the "Block all public access" setting for the bucket. image
  3. Add the following text to Bucket Policy.
    {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "AllowPublicRead",
          "Effect": "Allow",
          "Principal": {
            "AWS": "*"
          },
          "Action": "s3:GetObject",
          "Resource": "arn:aws:s3:::{your-bucket-name}/*"
        }
      ]
    }
    

Environment

You must need this environments.

OPENAI_API_KEY

You need this environments.

serpapi: SERPAPI_API_KEY
bing-search: BING_SEARCH_URL, BING_SUBSCRIPTION_KEY