Ultimate culinary companion offering expert cooking guidance and ingredient tips seamlessly
View Demo
·
Report Bug
·
Request Feature
- Project Overview
- Project Demo
- Architecture
- Required API Keys
- Project Setup
- Deployment on AWS
- Dependencies
- Author
- API Recording
API.demo.mp4
- API Information
/
: Check service status
/chat
: Initiate a conversation with RasoiGuru chatbot. Accepts a POST request with a JSON payload containing the user's query. Returns a response with the chatbot's answer. Requires a session_id cookie for session management.
This project requires the following API keys:
- LangChain API key: Required for LangSmith tracking.
- Pinecone API key: Required for storing vectors in Vector database.
- Cohere API key: Required for vector Embedding.
- Groq API key: Required for accessing the LLM.
LangSmith facilitates usage tracking and provides valuable insights into user behavior through seamless integration. The screenshot below illustrates a sample view of RasoiGuru usage data within the LangSmith platform.
Ensure that you obtain these API keys before running the project.
Clone this GitHub repository
(base)$: git clone https://github.com/Pramit726/RasoiGuru.git
Go to the project directory
(base)$: cd RasoiGuru
Configure environment
- Create the conda environment
(base)$: conda create -p venv python==3.10 -y
- Activate the environment
(base)$: conda activate venv
- Install the required dependencies
(venv)$: pip install -r requirements.txt
Run it
(venv)$: python uvicorn main:app --host 0.0.0.0 --port 8000
It will start the FastAPI application, making it accessible at http://localhost:8000
Step 1
First login to the AWS: https://aws.amazon.com/console/
Step 2
Search about EC2 in the services section.
Step 3
Configure the Ubuntu machine.
Step 4
Launch the instance.
Step 5
Do the port mapping to this port: 8000
Step 6
Run the following commands.
sudo apt update
sudo apt-get update
sudo apt upgrade -y
sudo apt install git curl unzip tar make sudo vim wget -y
git clone https://github.com/Pramit726/RasoiGuru.git
cd RasoiGuru
sudo apt install python3-pip
sudo apt install python3-venv
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
If you want to add the API keys
-
Create .env file in the AWS server using touch .env
-
Next write vi .env
-
Press i
-
Copy API keys and paste it
-
Press : , then wq! and hit enter
Step 7
#Temporary running
python3 -m uvicorn main:app --host 0.0.0.0 --port 8000
#Permanent running
nohup python3 -m uvicorn main:app --host 0.0.0.0 --port 8000
- fastapi
- langchain
- langchain-community
- langchain_cohere
- langchain_core
- langchain_groq
- langchain_pinecone
- pinecone-client
- pypdf
- python-dotenv
- wikipedia
Pramit De
- Pramit726
- pramitde726@gmail.com / pramit.de.cse.2021@tint.edu.in
- Department of CSE, Techno International New Town, West Bengal, India
© 2024 RasoiGuru by Pramit De