fajifr / recontent

Content recommendation API
MIT License
0 stars 1 forks source link

Example MongoDB document #10

Open Freija opened 8 years ago

Freija commented 8 years ago

This is an example MongoDB document for the clicktracking database, note that the response is a list of list, ordered by the score of the recommendation.

{
"id": 1,
"version": 1.0,
"corpus": "simple-wiki"
"request" : "http://www.symmetrymagazine.org/article/scientists-salvage-insights-from-lost-satellite",
"time": 1469387490.0,
"response_time": 100.0,
"response": 
          [
            ["simple.wikipedia.org/wiki/?curid=171927", "0.787428", "Interstellar medium"],
            ["simple.wikipedia.org/wiki/?curid=34685", "0.737277", "Dark matter"],
            ["simple.wikipedia.org/wiki/?curid=415550", "0.735842", "Black Eye galaxy"],
            ["simple.wikipedia.org/wiki/?curid=265802", "0.726268", "Edwin Hubble"],
            ["simple.wikipedia.org/wiki/?curid=401094", "0.712502", "Messier 82"],
            ["simple.wikipedia.org/wiki/?curid=401112", "0.711928", "Baby boom galaxy"]
         ],
"engine" : "gensimple",
"experiment_id": 1,
"clicks": [
                 { 
                    "response_id": 5,
                    "time": 1469387490.0
                 },
                 { 
                    "response_id": 2,
                    "time": 1469387490.0
                 }
              ]
}