Skip to content

T-DevH/pet-care-project

Repository files navigation

🐾 Pet Care AI - Complete Project

Welcome to Pet Care AI, an AI-powered platform that provides intelligent assistance for pet owners. This project integrates LLM-RAG (Retrieval-Augmented Generation) with FastAPI for the backend and Next.js for the frontend, enabling document-based AI chat functionalities.

πŸ“‚ Project Structure

Path Description
pet-care-project/ Root directory of the project
β”œβ”€β”€ pet-care-backend/ Backend (FastAPI, RAG, OpenAI API)
β”œβ”€β”€ pet-care-ai/ Frontend (Next.js, React, MUI)
β”œβ”€β”€ .gitignore Git ignore file
β”œβ”€β”€ README.md Main repository documentation

Each folder contains a README.md file with detailed installation steps.


πŸ—οΈ Backend (FastAPI & RAG)

πŸ“Œ Tech Stack:

  • FastAPI – Web framework for API development
  • FAISS – Vector search for document-based AI chat
  • OpenAI API – Chat-based AI responses
  • PyPDF2 – PDF document processing
  • Sentence Transformers – Text embedding for document search

πŸ“Œ Key Features:

  • βœ… LLM-RAG Implementation
  • βœ… PDF Upload & Processing
  • βœ… Vector Search with FAISS
  • βœ… AI Chat with Retrieval-Augmented Generation (RAG)

πŸ”— Backend Documentation & Setup


🎨 Frontend (Next.js & React)

πŸ“Œ Tech Stack:

  • Next.js – React framework for SSR & client-side rendering
  • Material UI (MUI) – Responsive UI components
  • Axios – API communication with backend
  • React Hooks – State management

πŸ“Œ Key Features:

  • βœ… Chat Interface – AI-powered chat
  • βœ… PDF Upload UI – Upload documents for AI analysis
  • βœ… Modern UI – MUI-powered responsive design

πŸ”— Frontend Documentation & Setup


πŸš€ Installation & Running the Project

1️⃣ Clone the Repository

git clone https://github.com/T-DevH/pet-care-project.git
cd pet-care-project

2️⃣ πŸš€ Set Up the Backend

cd pet-care-backend
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload

πŸš€ Backend is now running at: http://127.0.0.1:8000

3️⃣ πŸš€ Set Up the Frontend

cd ../pet-care-ai
npm install
npm run dev

πŸš€ Frontend is now running at: http://localhost:3000

πŸ“Œ Key API Endpoints

Method Endpoint Description
POST /api/upload-pdf Upload a PDF for AI processing
POST /api/ask Ask questions about the uploaded PDF
POST /api/chat Chat with AI assistant

πŸ“š LLM-RAG Implementation & Blog Series

This project is part of a 6-blog series covering LLM-RAG implementation from exploration to enterprise deployment, including AI agents and agentic AI.

πŸ“Œ Next Steps:

  • Upgrade to NVIDIA NeMo + NIMs for optimized cost-effective deployment
  • Scale with GPU acceleration

Stay tuned for updates in the blog series!

About

πŸ—οΈ Implementing an LLM-RAG System

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors