视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
semantra【文档与办公】Guides Semantra semantic-search CLI, local document indexing, embedding model selection, and interactive web search workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task involves the semantra Python package: installing or
inspecting the CLI, semantically searching local text/PDF documents, selecting
embedding models, understanding cache artifacts, or operating Semantra's local
browser UI.
Run these safe checks in the Semantra environment before constructing an expensive command:
semantra --help
semantra --version
semantra --list-models
If the CLI is not visible or imports fail, run the bundled diagnostic helper:
python scripts/inspect_semantra_install.py
Read repo-provenance.md when deciding whether this skill is aligned with a current Semantra checkout or should be refreshed.
For normal use, install the public package in an isolated Python environment:
python -m pip install semantra
For a source checkout, install the package from the checkout after reviewing its current metadata:
python -m pip install -e .
Semantra 0.1.12 imports pkg_resources; if the CLI fails because that module is
missing, see troubleshooting.md before changing
other dependencies.
| Task | Read |
|---|---|
Process local .txt or .pdf files, use --no-server, choose --windows, inspect cache artifacts, or troubleshoot PDF/text preprocessing. | document-indexing |
Choose mpnet, minilm, sgpt, sgpt-1.3B, openai, or a custom Hugging Face model; diagnose OpenAI, CUDA, model downloads, pool sizes, or SVM dependency issues. | models-and-embeddings |
Use the local web UI, query with +/-, apply result tags, interpret scores, call local JSON routes, handle port conflicts, or debug PDF/text navigation in the browser. | interactive-search |
| Need a grouped CLI option reference or server route overview before choosing a sub-skill. | cli-and-server-reference.md |
| Need cross-cutting install/import/dependency/cache/server triage. | troubleshooting.md |
semantra --no-server --semantra-dir ./semantra-cache --model minilm documents/*.txt
Read document-indexing workflows
for cache validation and --force handling. The first local transformer run may
download model files; choose the model with
models-and-embeddings first.
semantra --semantra-dir ./semantra-cache report.pdf notes/*.txt
Open the printed localhost URL. Use interactive-search for query arithmetic, result tags, server routes, and UI troubleshooting.
Default local search uses mpnet. Use minilm for faster small tests, SGPT
presets for asymmetric semantic-search experiments, a custom
--transformer-model for language/domain needs, or --model openai only after
privacy, API-key, network, SDK, and cost checks.
--host 0.0.0.0 only after an explicit privacy review.pkg_resources import may require a Setuptools version that still provides
it, or a Semantra code update.--model openai uses the legacy OpenAI embedding API and may need
openai<1 or package updates with current SDKs.--svm requires scikit-learn, which is not declared in the base package
dependencies, and is incompatible with asymmetric SGPT presets.This generated skill is self-contained. Use its bundled references and scripts instead of reopening the original repository docs, examples, tests, or source files during a Researcher task.