A backend agentic system for managing product catalog data (offering, specification, characteristic, price) using MongoDB and LangGraph.
- Upsert, filter, and list tools for all product catalog entities
- MongoDB Atlas or local MongoDB support
- LLM agent integration (Ollama, LangGraph)
- Python 3.10+
- Ollama (for local LLMs)
- MongoDB Atlas account or local MongoDB instance
-
Install dependencies with uv:
uv sync
-
Copy the example environment file and edit as needed:
cp .env.example .env
- Set
MONGODB_URIandMONGODB_DB_NAMEfor your MongoDB instance (Atlas or local) - Set
MODEL_NAMEfor your LLM (default: qwen3:1.7b)
- Set
Run:
./run.shThis script loads environment variables, starts Ollama and the LLM model, and launches the LangGraph dev server.
- Collections are auto-created in MongoDB:
product_offering,product_specification,product_characteristic,product_price - You can use MongoDB Atlas (cloud) or a local MongoDB instance
- All agent tools are available via the LangGraph agent
- Ensure MongoDB is accessible from your machine (check IP whitelist for Atlas)
- If Ollama or the LLM model fails to start, check your model name and Ollama installation
For more details, see the code and comments in each module.