https://github.com/context-labs/autodelve
A simple AI-powered Discord to answer questions based on a set of documents.
https://github.com/context-labs/autodelve
Last synced: 5 months ago
JSON representation
A simple AI-powered Discord to answer questions based on a set of documents.
- Host: GitHub
- URL: https://github.com/context-labs/autodelve
- Owner: context-labs
- Created: 2025-02-26T19:40:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-11T01:11:35.000Z (about 1 year ago)
- Last Synced: 2026-01-19T22:45:37.618Z (5 months ago)
- Language: TypeScript
- Size: 72.3 KB
- Stars: 228
- Watchers: 3
- Forks: 48
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# autodelve
A simple AI-powered Discord to answer questions based on a set of documents.
**View the demo here: [Twitter/X Demo](https://x.com/0xSamHogan/status/1894937763717550272)**
TODO: Better documentation
## Setup
```bash
bun install
```
### Create a `.env` file
```bash
cp .env.example .env
```
Edit the `.env` file with your own values.
### Index a website
```bash
bun run index.ts download https://docs.devnet.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:
```bash
bun run index.ts ask "How can I get started with inference.net?"
```
The response will be streamed to the console.
### Run in Discord
1. Create a Discord bot on the [Discord Developer Portal](https://discord.com/developers/applications). Make sure to add your secret values in the `.env` file.
2. Install the bot on your server
3. Run the bot with:
```bash
bun index.ts
```