https://github.com/walterromero9/bori-bot
AI chatbot built with LangChain, FastAPI & Next.js
https://github.com/walterromero9/bori-bot
ai chatbot chatgpt fastapi langchain
Last synced: about 2 months ago
JSON representation
AI chatbot built with LangChain, FastAPI & Next.js
- Host: GitHub
- URL: https://github.com/walterromero9/bori-bot
- Owner: walterromero9
- Created: 2025-02-25T18:31:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-25T18:33:11.000Z (over 1 year ago)
- Last Synced: 2025-02-25T19:29:07.252Z (over 1 year ago)
- Topics: ai, chatbot, chatgpt, fastapi, langchain
- Language: TypeScript
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bori Bot
Bori Bot is a simple chatbot developed with LangChain and OpenAI GPT-3.5 Turbo. It features a modern user interface built with Next.js and shadcn/ui, and a powerful backend with FastAPI and LangChain.
## Project Structure
The project is divided into two main parts:
- **frontend**: User interface built with Next.js and shadcn/ui
- **backend**: API built with FastAPI and LangChain
## Features
- Real-time chat
- Message persistence in the browser
- Modern and responsive user interface
- Loading and typing animations
- Customizable through system prompts
## Setup
### Backend
1. Navigate to the backend directory:
```bash
cd backend
```
2. Install dependencies:
```bash
pip install -r requirements.txt
```
3. Configure your `.env` file with your OpenAI API key:
```
OPENAI_API_KEY=your_openai_api_key_here
```
4. Start the server:
```bash
python main.py
```
The server will start at http://localhost:8000
### Frontend
1. Navigate to the frontend directory:
```bash
cd frontend
```
2. Install dependencies:
```bash
npm install
```
3. Start the development server:
```bash
npm run dev
```
The application will be available at http://localhost:3000
## Customization
You can customize the chatbot's behavior by modifying the `backend/prompts.py` file. This file contains the system prompt that defines how the chatbot should behave.
## Technologies Used
- **Frontend**:
- Next.js 14
- TypeScript
- Tailwind CSS
- shadcn/ui
- Lucide Icons
- **Backend**:
- FastAPI
- LangChain
- OpenAI GPT-4o-mini
## Developed by
Walter Romero