A Bot built on Streamlit, MistralAI, Langchain and HuggingFace to process Cricket Tweets and Chat.
- This is not for commercial purpose and is only meant for my learning of the above mentioned technology.
- I used python 3.12.5 on my Windows 10 Laptop for this activity.
- The imported libraries are mentioned in the requirements.txt. Please run it before.
- Scrape Twitter manually or otherwise to bring the Cricket or Sports Tweets based on the sample format CricketTweets3.csv.
- Before running the Bot, please run the createMetadata_.py script to Load the Data, Cleanse, Identify Names and Places and Create the metadata.json file.
- python run createMetadata_.py.
- Then run the Sports_Tweet_Bot_.py with the command streamlit run Sports_Tweet_Bot_.py.
- Note that the chat_input and chat_message calls in Streamlit do not work in versions below 1.13.
- The script takes a while to run on the first instance as it creates the ChromaDB.
- A sample version of the botconversations.json is provided in the github to get started.