Go to file
ChungHwan Han 26a0c67bef
stdout/stderr tracer (#12)
* feat: stdout tracer

* fix: lower temperature

* fix: comment-out APPEND tool

* feat: add what i should do

* fix: add patch prompt example and write tool outputs written code

* feat: stdout tracer

* feat: test

* fix: prompt

* feat: rollback

* fix: patch tool

---------

Co-authored-by: adldotori <adldotori@gmail.com>
2023-04-05 03:37:20 +00:00
api stdout/stderr tracer (#12) 2023-04-05 03:37:20 +00:00
assets docs: update simple_todo 2023-04-05 03:56:15 +09:00
build fix: build errors and minor issues 2023-04-03 12:40:58 +00:00
core stdout/stderr tracer (#12) 2023-04-05 03:37:20 +00:00
static Feature/better usability (#6) 2023-03-23 16:33:45 +09:00
.dockerignore build: fix dockerfile 2023-03-23 08:53:25 +00:00
.env.example Feature/terminal strace (#10) 2023-03-30 06:37:56 +00:00
.gitignore feat: update prompt for app develop (#8) 2023-03-26 15:28:14 +09:00
ansi.py stdout/stderr tracer (#12) 2023-04-05 03:37:20 +00:00
docker-compose.yml fix: build errors and minor issues 2023-04-03 12:40:58 +00:00
env.py Feature/terminal strace (#10) 2023-03-30 06:37:56 +00:00
logger.py feat: import order 2023-04-03 07:43:34 +00:00
poetry.lock fix: build errors and minor issues 2023-04-03 12:40:58 +00:00
pyproject.toml fix: build errors and minor issues 2023-04-03 12:40:58 +00:00
README.md docs: update features 2023-04-05 10:39:51 +09:00
utils.py fix: conditional import torch 2023-04-03 12:42:08 +00:00

EVAL

EVAL(Elastic Versatile Agent with Langchain) will execute all your requests. Like the eval method!

https://user-images.githubusercontent.com/19206046/229892113-481437b7-a332-4e0c-bfb3-d2c97c9035be.mp4

You don't have to think about how. If you tell them the results you want, they'll search, code, run, and test the Internet themselves, and they'll return the final results.

EVAL's FEATURE

  1. Multimodal Conversation
    • It understands and generates data formats for text, image, dataframe, audio (TODO), video (TODO).
  2. Services
    • It can serve services (blocking processes) such as web apps.
  3. Evolving
    • It can create it's own tools by writing, modifying, executing and testing code.

BUILT-IN TOOLS

  1. Terminal
    • SyscallTracer
  2. Code Editor
    • READ: Read and understand file.
    • WRITE: Write code to create a new tool.
    • PATCH: Correct the error throught the code patch if an error occurs.
    • DELETE: Delete code in file for a new start.
  3. Search
    • Google, Bing, Wikipedia
    • Custom DB Search (Currently using Corca's Wine Data in https://www.workershop.kr/en)
      • Use GPT index to quickly find the information you need in a document and use that information to answer
    • Requests.get (Get information from anywhere you want)
  4. Image Understanding, Generation, Editing
    • Image Understanding
      • Image Understanding: blip-image-captioning
      • Visual Question&Answering: blip-vqa
    • Image Generation: Stable Diffusion 1.5
    • Image Editing
      • Replace or remove an object: Stable Diffusion Inpainting
      • Change Image's style: InstructPix2Pix

Thanks to LangChain, Visual ChatGPT, llama index.

CUSTOM TOOLS

We also don't know what tools EVAL will create. Every day, It will create the right tools to execute your request.


Usage

  1. environments settings
  2. docker-compose up -d

Environment

You need to write some environment variables in the .env file. Refer .env.example if you don't know how to format it.

Mandatory

Manatory envs are required in order to serve EVAL.

  • OPENAI_API_KEY - OpenAI api key

Optional

Each optional env has default value, so you don't need to set unless you want to change it.

  • PORT - port (default: 8000)
  • SERVER - server address (default: http://localhost:8000)
  • LOG_LEVEL - INFO | DEBUG (default: INFO)
  • BOT_NAME - give it a name! (default: Orca)

For More Tools

Some tools requires environment variables. Set envs depend on which tools you want to use.

  • Google search tool
    • SERPAPI_API_KEY
  • Bing search tool
    • BING_SEARCH_URL
    • BING_SUBSCRIPTION_KEY

TODO

  • memory saving
  • session manage
  • convert to alpaca
  • prompt upgrade
  • give a tool to create tools
  • etc.

Reference

Thanks to the following repositories.