Skip to content

A Chatbot which analyzes stock analysts' forecast on the stock market

License

Notifications You must be signed in to change notification settings

madzai/chatbot_llm

Repository files navigation

Chainlit Chatbot

A Chatbot which analyzes stock analysts' forecast on the stock market
The chatbot can store stock articles found online (based on a list of pre-defined websites and stock analysts)
You can ask the chatbot about outlook on the stock market. The chatbot will answer based on the stock articles stored.

Copy the code

Run the following command in your local folder after logging in with your Github account:

git clone https://github.com/madzai/chatbot_llm.git

Install required Python packages

Create and activate a virtual environment. Then run the following code in the parent folder:

pip install -r requirements.txt

Run the code

Run the chatbot with the following code in the parent folder:

chainlit run app.py

The chatbot will be available in http://localhost:8000/

Update the data

In order to get the most updated market information, search for newer stock articles is needed.
Use function Update_all_data() and run the code in webSearch.py to search for new stock articles and store for use.

python run webSearch.py

About the stock article data

The stock articles are stored in guru_urls.json.
File guru_source.json defines the data source and stock analysts to search for when updating the data.

Languages and Tools:

Visual Studio Code HTML5 CSS3 JavaScript React Node.js SQL MySQL MongoDB Git GitHub Terminal




Stats and others:

Github Stats Top Langs

About

A Chatbot which analyzes stock analysts' forecast on the stock market

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published