LLM powered Discord Bot that works seamlessly on CPU. Powered by LanceDB and Llama.cpp.
This Discord bot is designed to helps answer questions based on a knowledge base (vector db). By default, it contains knowledge of PyTorch Lightning and Lit-GPT.
This is a personal project created for educational purposes. It is not affiliated with or endorsed by the official Lightning AI team.
graph LR
A((User Query)) --> B((Convert to Embedding))
B --> C((Find Similar Document<br>from Vector Database))
C --> D((Use Retrieved Document<br>as Context to Answer Question<br>using Mistral 7B LLM))
To get started with Discord-LLM-Bot, follow these steps:
Invite the Bot to Your Server:
Run the bot:
LEARNER_BOT_TOKEN
python src/app.py
Usage:
@discord-llm-bot How does Lit-GPT work?
).Here are some examples of how you can use Discord-LLM-Bot:
@discord-llm-bot What is PyTorch Lightning?
@discord-llm-bot How do I evaluate Llama 2 using Lit-GPT?
@discord-llm-bot Show me an example of using PyTorch Lightning for image classification.
If you want to contribute to this project or have suggestions for new features, feel free to open an issue or create a pull request. All contributions are welcome from the community.
This project is licensed under the MIT License. See the LICENSE file for more details.
Enjoy using Discord-LLM-Bot for learning and exploring PyTorch Lightning and Lit-GPT!