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.
| 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.
π 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
π 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
1οΈβ£ Clone the Repository
git clone https://github.com/T-DevH/pet-care-project.git
cd pet-care-project2οΈβ£ π 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
| 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 |
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!