inweb3 / chatWeb3

Harnessing ChatGPT for blockchain and crypto data analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatWeb3 - Harnessing ChatGPT for blockchain and crypto data analysis

More details about this application prototype is available at:

Can ChatGPT unlock blockchain data for the masses? Early insights from building ChatWeb3

Required API keys

Flipsidecrypto database

Create a .env file and add a Flipside API key, which allows the application to query the Flipsidecrypto database. Flipside API key can be obtained here, and it has a free tier as well.

FLIPSIDE_API_KEY="XXX"

OpenAI chatGPT

You will need to provide your OpenAI API key to use this application. An OpenAI API key can be obtained from Openai.

Installation

git clone https://github.com/inWeb3ai/chatWeb3.git
cd chatWeb3
poetry shell
poetry install

Run the application

poetry run chatweb3

This command will run the ChatWeb3 gradio app.

Test

To run tests:

make test
make integration_tests

Development

General configuration can be done through config/config.yaml

To enable debug mode, create an environmental variable:

ENV="development"

This will set the log_level=logging.DEBUG globally. You can tune the levels in config.yaml.

To enable debug logging in any individual model, e.g., in logger_callback.py, add the following:

logger = get_logger(
    __name__, log_level=logging.DEBUG, log_to_console=True, log_to_file=True
)

Note that any logger parameters passed in here will overwrite the global debug level.

The log file is located under the chatweb3/logs directory by default and can be configured in config.yaml

About

Harnessing ChatGPT for blockchain and crypto data analysis

License:MIT License


Languages

Language:Python 99.2%Language:Makefile 0.8%Language:Procfile 0.0%