Bertopic

From VectorSpaceLab/AREX-Skill · View interactive version

Bertopic is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Route BERTopic topic modeling, embedding, vectorizer, labeling, visualization, and serialization workflows.

How to use this skill

Skill file

BERTopic

BERTopic turns documents, precomputed embeddings, or multimodal inputs into topic models you can fit, inspect, label, visualize, and save.

Install

python -m pip install bertopic

Use only the optional packages that the chosen workflow needs. For example, multimodal image workflows use bertopic[vision], while label and backend workflows may require openai, litellm, langchain, llama-cpp-python, spacy, fastembed, model2vec, gensim, flair, safetensors, or datamapplot.

If you are working from a local checkout to inspect the package, editable install is also fine:

python -m pip install -e .

Quick check

Run the bundled environment check first:

python scripts/check_env.py

Add --smoke for a tiny no-download fit/load-style smoke that uses synthetic documents and precomputed embeddings.

Route map

When a task spans more than one route, start with the earliest route in the pipeline and move forward: embeddings → model building → topic-word tuning → labels → analysis → serialization.

Read next

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.