Project Documentation @ NOTION
- Manoj Bagale
- Zeal Okechukwu Achonu
- Osewuike Igue
- Basic understanding of Python programming
- Familiarity with web development and APIs
-
Create a Perplexity Account:
- Sign up for a Perplexity account and obtain your API key from the Perplexity dashboard.
-
Environment Setup:
- Create a project directory:
mkdir AnswerFisk cd AnswerFisk
- Install Python from python.org.
- Install
virtualenv
to create an isolated environment:pip install virtualenv
- Create and activate a virtual environment:
virtualenv chatbot_env source chatbot_env/bin/activate
- Create a project directory:
-
Install Dependencies:
- Create a
requirements.txt
file with the following contents:Flask==2.0.3 requests==2.25.1
- Install the required dependencies:
pip install -r requirements.txt
- Create a
-
Project Structure:
- Create the following folder structure:
project_root/ ├── app.py ├── static/ │ ├── css/ │ ├── js/ │ └── assets/ └── templates/ ├── home.html └── chat.html
- Create the following folder structure:
-
Implementation:
- Create
app.py
with the basic Flask structure - Design
home.html
andchat.html
for the chatbot interface within thetemplates/
folder. - Set your API key as an environment variable:
export API_KEY='your-api-key-here'
- Create
-
Run the Application:
- Run the Flask app:
python app.py
- Open a web browser and go to
http://localhost:5000
.
- Run the Flask app:
- Web-based chat interface
- Integration with Meta's Llama model for AI-powered responses