Add semantic context from a document
create_semantic_context_from_documentUpload a local document and convert each line into Tableau semantic context, such as a KPI glossary or business-rules note, for a node or the whole graph.
Instructions
WRITE: upload a local document (.txt, .md, .csv, .pdf, .docx, .xlsx; max 2 MB) and let Tableau turn it into semantic context, e.g. a KPI glossary or a business-rules note.
`file_path` is a path on the machine running this server; the file's content is sent to your
Tableau site, so confirm the file with the user first. Set exactly ONE of `target_node_id` (an
exact node id) or `is_global=true`, as for create_semantic_context (some sites accept only
graph-wide context). Tableau makes each line a statement (headings too), so write one rule
per line. Returns the new context with its statements and any `statements_skipped`.
Uses Tableau Knowledge's undocumented web-app API, which can change without notice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| graph_id | No | ||
| file_path | Yes | ||
| is_global | No | ||
| target_node_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||