This repository contains the code for Lucy, a chatbot application developed using React for the frontend and Python for the backend. The chatbot is powered by OpenAI, which provides natural language processing capabilities.
- Real-time chat interface
- OpenAI integration for natural language processing
- Upload your PDF files and ask questions about the file
To run the Lucy chatbot application locally, follow these steps:
Node.jsandnpm: Install Node.js and npm (Node Package Manager) by visiting the official website and downloading the installer for your operating system.Python: Install Python by visiting the official website and downloading the installer for your operating system.OpenAI: A free OpenAI account.
-
Clone the repository:
git clone https://github.com/ranjithsnair/lucy.git -
Navigate to the frontend directory:
cd .\lucy\client\ -
Install dependencies:
npm install -
Start the development server:
npm start -
Access the application at
http://localhost:3000
- Navigate to the backend directory:
cd .\lucy\server\ - Create a virtual environment (optional but recommended):
python -m venv venv - Activate the virtual environment (if created):
on
Windows:venv\Scripts\activateonmacOSandLinux:source venv/bin/activate - Install dependencies:
pip install -r requirements.txt - Start the backend server:
python main.py - The backend server should now be running at
http://localhost:8000
To configure the backend of the application, set below environment variables.
OPENAI_API_URLOPENAI_API_KEY
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
This project is licensed under the GPL License.
