https://github.com/nating/wikipedia-chatbot
Chat with a bot about any Wikipedia page!
https://github.com/nating/wikipedia-chatbot
Last synced: 11 months ago
JSON representation
Chat with a bot about any Wikipedia page!
- Host: GitHub
- URL: https://github.com/nating/wikipedia-chatbot
- Owner: nating
- Created: 2025-04-04T16:06:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-07T09:26:30.000Z (about 1 year ago)
- Last Synced: 2025-06-12T12:46:53.728Z (about 1 year ago)
- Language: TypeScript
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wikipedia Chatbot
*A chatbot for talking about Wikipedia articles.*
## Update!
**Check out the production version here!!:** https://github.com/nating/wikichat
## How to use it
To run the project, you'll be required to run some commands in your terminal:
1. **Clone the repo**
```bash
git clone https://github.com/nating/wikipedia-chatbot.git
```
2. **Install dependencies**:
```bash
cd wikipedia-chatbot
npm install
```
3. **Copy the example environment file**:
```bash
cp .env.example .env.local
```
4. **Add your OpenAI APK key to .env.local in the project root (or ask me for one to use!)**:
```bash
OPENAI_API_KEY=
CHUNK_SIZE=4000
EMBEDDING_MODEL=text-embedding-3-small
MODEL=gpt-4o-mini
```
5. **Run the app locally**:
```bash
npm run dev
```
6. **Open your browser at http://localhost:3000 to use the chatbot.**
7. **Paste in a Wikipedia URL, press `Scrape`, and wait for the scraping/embedding to complete.**
8. **Ask any questions you want about your Wikipedia page!**
Feel free to modify .env.local to mess around with the chunking / models!