Semantic scatter
get_semantic_mapA 2-D scatter of a filtered set, projected from the stored 768-dimension embeddings by PCA. Shows which items sit near each other in meaning — where a set splits into distinct strands and where it is one cloud. Read explained_variance before drawing any conclusion: with 768 dimensions the first two components usually carry a modest share, and a scatter explaining 6% of the variance is a much weaker claim than one explaining 40%. This is PCA, not UMAP: it spreads the broadest axes of variation and flattens fine cluster structure, so it is not comparable to the semantic landscapes on islam.zmo.de. Needs no API key — the vectors are a column in the dataset — but only items whose full text ships are embedded at all. NOTE the payload scales with limit: a point cloud is a chart, not something a text-only client can read, so for those the useful part is the explained-variance summary rather than the coordinates. Keep limit low unless a chart is going to be drawn.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Items projected (default 300, max 2000) | |
| subset | No | articles (default) | publications | references | |
| country | No | Exact country name: Benin | Burkina Faso | Côte d'Ivoire | Niger | Nigeria | Togo (accents optional) | |
| date_to | No | YYYY-MM-DD (or YYYY) | |
| keyword | No | ONE French concept keyword; substring over the subset's text fields | |
| subject | No | Exact subject tag (pipe-aware) | |
| color_by | No | country | newspaper | subject | lda_topic_label | polarity (gpt-5-6-luna's label) | |
| date_from | No | YYYY-MM-DD (or YYYY) | |
| newspaper | No | Newspaper (articles) or periodical/series title (publications) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| view | Yes | ||
| groups | No | ||
| points | No | ||
| subset | Yes | ||
| filters | Yes | ||
| color_by | No | ||
| projected | Yes | ||
| total_matches | Yes | ||
| explained_variance | Yes |