A full-stack hospital assistant project built with LangChain-style orchestration and graph-backed retrieval.
- chatbot_api/
- FastAPI-based backend for chatbot and agent endpoints
- src/agents/hospital_rag_agent.py
- src/chains/ for domain chains
- src/tools/ for utility tools
- chatbot_frontend/
- Frontend service for chat interaction
- hospital_neo4j_etl/
- Data pipeline/service for loading hospital data into Neo4j
- data/
- Source CSV datasets (hospitals, physicians, reviews, visits, etc.)
- tests/
- Async and sync agent request tests
- docker-compose.yml
- Local multi-service orchestration
- Python 3.11+
- FastAPI
- LangChain ecosystem
- Neo4j
- Docker and Docker Compose
- Configure environment variables in local .env files as needed.
- Build and start services:
docker compose up --build- Access services after startup:
- API: as configured by chatbot_api service
- Frontend: as configured by chatbot_frontend service
Backend:
cd chatbot_api
# install dependencies from pyproject.toml with your preferred toolFrontend:
cd chatbot_frontend
# install dependencies from pyproject.toml with your preferred toolETL:
cd hospital_neo4j_etl
# run load scripts after configuring Neo4j connection- Keep secrets out of source control.
- The project .gitignore excludes virtual environments and local .env files.