Niteni Cluster Server (95)

Production Base URL

https://cluster.niteni.web.id/api

Available Endpoints

EndpointMethodStatusDescription
/embedPOSTStableGenerate embeddings
/embed-batchPOSTStableBatch embeddings
/similarityPOSTStableSemantic similarity
/searchPOSTStableSemantic search
/clusterPOSTStableSemantic clustering
/sentimentPOSTStableSentiment analysis
/classifyPOSTStableSBERT classification
/job/*GET/POSTStableAsync jobs
/research/keywordsPOSTComing SoonKeyword clustering
/research/variablesPOSTComing SoonVariable clustering
/research/hypothesesPOSTComing SoonHypothesis analysis

/embed

curl -X POST https://cluster.niteni.web.id/api/embed \
-H "Content-Type: application/json" \
-d '{
  "text":[
    "pantai sangat indah",
    "pelayanan hotel memuaskan"
  ]
}'

/similarity

curl -X POST https://cluster.niteni.web.id/api/similarity \
-H "Content-Type: application/json" \
-d '{"text1":"pantai sangat indah","text2":"pantai bagus sekali"}'

/search

POST /search
{
  "query":"pantai indah",
  "candidates":["pantai pasir putih","hotel murah","kuliner malam"]
}

/cluster

POST /cluster
{
  "texts":[
    "pantai indah",
    "pantai pasir putih",
    "hotel bersih",
    "kamar nyaman"
  ]
}

/sentiment

POST /sentiment
{
  "texts":[
    "pelayanan sangat memuaskan",
    "hotel sangat mengecewakan"
  ]
}

/classify

POST /classify
{
  "data":[{"id":1,"text":"pantai sangat indah"}],
  "concepts":[{"id":10,"name":"keindahan alam"}],
  "threshold":0.5,
  "return_score":true
}

Asynchronous Jobs

POST /job/embed
GET  /job/status/{JOB_ID}
GET  /job/result/{JOB_ID}

Research API (Coming Soon)

  • POST /research/keywords
  • POST /research/variables
  • POST /research/hypotheses
  • POST /research/articles

Backend

Model: SBERT 
Clustering: HDBSCAN 
Server: 10.3.3.95 
   
Cluster Niteni API Documentation • Version 1.0