tg-get-de-core
Fetches a document embeddings core from the knowledge service and saves it to a local file.
Synopsis
tg-get-de-core --id CORE_ID -o OUTPUT_FILE [options]
Description
The tg-get-de-core command retrieves a stored document embeddings core from TrustGraph and saves it to a local file in MessagePack format. The exported file contains document chunk embeddings suitable for backup, transfer between systems, or offline analysis.
Options
Required Arguments
| Option | Description |
|---|---|
--id, --identifier CORE_ID | Identifier of the document embeddings core to fetch |
-o, --output OUTPUT_FILE | Path for the output MessagePack file |
Optional Arguments
| Option | Default | Description |
|---|---|---|
-u, --url URL | $TRUSTGRAPH_URL or http://localhost:8088/ | TrustGraph API URL |
-w, --workspace WORKSPACE | $TRUSTGRAPH_WORKSPACE or default | Workspace identifier |
-t, --token TOKEN | $TRUSTGRAPH_TOKEN | Authentication token |
Examples
Basic Export
tg-get-de-core --id "research-embeddings" -o research-de.msgpack
Export with Timestamped Filename
tg-get-de-core \
--id "production-embeddings" \
-o "production-de-$(date +%Y%m%d-%H%M%S).msgpack"
Export from a Specific Workspace
tg-get-de-core \
--id "project-embeddings" \
-o project-de.msgpack \
-w my-workspace \
-u http://production:8088/
Environment Variables
TRUSTGRAPH_URL: Default API URLTRUSTGRAPH_TOKEN: Default authentication tokenTRUSTGRAPH_WORKSPACE: Default workspace identifier
Related Commands
tg-put-de-core- Import document embeddings core from MessagePack filetg-get-kg-core- Export knowledge graph coretg-put-kg-core- Import knowledge graph coretg-show-kg-cores- List available knowledge cores