TigerGraph
Score Breakdown69%
Lost points on 5 checks
- cost2/10
- time2/15
- efficiency0/10
- zero errors0/5
- OpenAPI0/14
Eval Score (70% weight)63%
cost$0.55 ($0.40–$0.70, expensive)+2
time529s (300s–600s, very slow)+2
efficiency40 tool calls (>25, inefficient)+0
found docsTouched docs at docs.tigergraph.com: yes (2 matching tool calls)+10
zero errorsTool outputs with errors/tracebacks: 7+0
syntax validCode compiles/parses correctly+5
created filesGenerated files: 1 (need ≥1)+10
full executionMethod: full_execution, Exit: 0+35
Final Score
A: >=90%B: 75-89%C: 55-74%D: <55%
(63 × 0.7) + (86 × 0.3)= 69%
Replay
Using https://docs.tigergraph.com/pytigergraph/current/intro/, complete the following task:
Using the TigerGraph Python SDK, build me a collaborative-filtering product recommendation engine backed by a graph (the classic "customers who bought this also bought..." feature):
1. Install the official TigerGraph Python SDK (pip install) and connect to TigerGraph
2. Model the domain as a graph: create User nodes and Product nodes, connected by PURCHASED relationships. Load exactly this data:
- Alice PURCHASED Laptop, Mouse
- Bob PURCHASED Laptop, Mouse, Monitor
- Carol PURCHASED Laptop, Monitor
- Dave PURCHASED Mouse, Monitor
- Erin PURCHASED Laptop, Keyboard
3. For the target user Alice, run a SINGLE multi-hop graph traversal query (do NOT pull the data into Python and compute it there) that recommends products:
- Find "similar users": other users who have purchased at least one product in common with Alice
- Collect the products those similar users purchased that Alice has NOT already purchased
- Score each candidate product by how many distinct similar users purchased it
- Return the candidates ranked by score, highest first
4. Print the result as JSON with fields: user ("Alice"), recommendations (array of objects with fields product and score, sorted by score descending)
With this data the top recommendation must be Monitor (purchased by Bob, Carol, and Dave — 3 of Alice's similar users), ahead of Keyboard (score 1).
You MUST use the official TigerGraph Python SDK / client library and express the recommendation logic as a graph query (e.g. Cypher/openCypher traversal) — do not make raw HTTP/REST calls and do not reimplement the traversal in plain Python.recommend.py
Unlock analytics
See TigerGraph's score trend, layer rankings, and competitive position.
Run completed Nov 20, 2026, 5:34 PM