A simple AI-powered Discord to answer questions based on a set of documents.
View the demo here: Twitter/X Demo
TODO: Better documentation
bun install
cp .env.example .env
Edit the .env
file with your own values.
bun run index.ts download https://docs.inference.net
This command will download the website, convert the HTML to Markdown, and save the content to the content
directory.
Once a website has been indexed, you can ask questions to the AI by running:
bun run index.ts ask "How can I get started with inference.net?"
The response will be streamed to the console.
-
Create a Discord bot on the Discord Developer Portal. Make sure to add your secret values in the
.env
file. -
Install the bot on your server
-
Run the bot with:
bun index.ts