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/Deepmalya-Rakshit/RasoiGuru.gitGo to the project directory
(base)$: cd RasoiGuruConfigure 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.txtRun it
(venv)$: python uvicorn main:app --host 0.0.0.0 --port 8000It 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 updatesudo apt-get updatesudo apt upgrade -ysudo apt install git curl unzip tar make sudo vim wget -ygit clone https://github.com/Deepmalya-Rakshit/RasoiGuru.gitcd RasoiGurusudo apt install python3-pipsudo apt install python3-venvpython3 -m venv venvsource venv/bin/activatepip3 install -r requirements.txtIf 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
Deepmalya Rakshit
Deepmalya-Rakshit
deepmalyarakshit@gmail.com / deepmalya.rakshit.cse.2021@tint.edu.in
- Department of CSE, Techno International New Town, West Bengal, India
© 2024 RasoiGuru by Deepmalya Rakshit