This is a Github repository to build a RAG based agent for the game called Palbot. The goal of building the chatbot was to have a single chatbot to answer all queries regarding Palbot game, which included pals, items and detail combinations.
For getting relevant data related to Palworld game, following were my data sources.
Pals: https://palworld.fandom.com/wiki/Paldeck
Items: https://palworld.gg/items
Pal Breed: https://www.rockpapershotgun.com/palworld-breeding-combos
For the embeddings, I used the all-MiniLM-L6-v2 model for creating embeddings. For storing the embeddings, I used chromadb and stored the embeddings locally on my drive.
I have used the openAI 3.5 turbo instruct model to generate answer from the most similar embeddings.
I've used streamlit for a very simple UI.
Follow the steps to run the application
- Create a new python env and install the requirements.txt file
- run the command 'streamlit run app.py'
- Now click scrape data to save data locally
- Click generate embeddings to save embeddings locally
- Ask queries regarding pals eg: "How to get anubis"