Skip to content

Commit 37cd3ea

Browse files
committed
Merge branch 'self-hosted-dgraph-guide' of github.com:hypermodeinc/docs into self-hosted-dgraph-guide
2 parents 62b8516 + 14b7d6b commit 37cd3ea

File tree

3 files changed

+22
-68
lines changed

3 files changed

+22
-68
lines changed

dgraph/self-hosted.mdx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,14 @@ if [[-f "exported_data/g01.json.gz"]]; then zcat exported_data/g01.json.gz | jq
282282

283283
```bash Schema Validation
284284
# Validate schema syntax
285-
if [[ -f "schema.graphql" ]]; then
285+
if [ -f "exported_data/g01.rdf.gz" ]; then zcat exported_data/g01.rdf.gz | wc -l
286+
fi
287+
288+
# For JSON exports, validate structure
289+
290+
if [ -f "exported_data/g01.json.gz" ]; then zcat exported_data/g01.json.gz | jq '.[] | keys' | head -10
291+
fi
292+
286293
# Basic GraphQL syntax check
287294
node -e "
288295
const fs = require('fs');
@@ -329,7 +336,11 @@ fi
329336
<Step title="Create Checksums">
330337
```bash # Generate checksums for integrity verification cd migration_data find
331338
. -type f -name "*.gz" -exec sha256sum {} \; > checksums.txt find . -type f
332-
-name "*.json" -exec sha256sum {} \; >> checksums.txt ```
339+
```bash
340+
# Generate checksums for integrity verification
341+
cd migration_data
342+
find . -type f -name "*.gz" -exec sha256sum {} \; > checksums.txt
343+
find . -type f -name "*.json" -exec sha256sum {} \; >> checksums.txt
333344
</Step>
334345
335346
<Step title="Compress for Transfer">
@@ -476,7 +487,9 @@ curl http://10.0.1.10:8080/health
476487
kubectl port-forward -n dgraph svc/dgraph-dgraph-alpha 8080:8080 &
477488
curl -X POST localhost:8080/admin/schema -H "Content-Type: application/json"
478489
\ -d @schema_backup.json
479-
490+
curl -X POST localhost:8080/admin/schema \
491+
-H "Content-Type: application/json" \
492+
-d @schema_backup.json
480493
```
481494

482495
</Tab>
@@ -524,7 +537,7 @@ kubectl run dgraph-live-loader \
524537
--namespace=dgraph \
525538
--command -- dgraph live \
526539
--files
527-
/data/export.rdf.gz \
540+
--files /data/export.rdf.gz \
528541
--alpha dgraph-dgraph-alpha:9080 \ --zero
529542
dgraph-dgraph-zero:5080
530543
```
@@ -567,7 +580,8 @@ dgraph-dgraph-zero:5080
567580
curl -X POST $DGRAPH_ENDPOINT/admin \
568581
-H "Content-Type: application/json" \
569582
-d '{"query": "mutation { addUser(input: {name: \"admin\", password:
570-
\"password\"}) { user { name } } }"}'
583+
-H "Content-Type: application/json" \
584+
-d '{"query": "mutation { addUser(input: {name: \"admin\", password: \"password\"}) { user { name } } }"}'
571585
572586
````
573587
</Tab>

docs.json

Lines changed: 3 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,13 @@
1515
"global": {
1616
"anchors": [
1717
{
18-
"anchor": "Hypermode Graphs (preview)",
19-
"icon": "chart-network",
18+
"anchor": "Hypermode Agents (beta)",
19+
"icon": "robot",
2020
"color": {
2121
"light": "#FF00EE",
2222
"dark": "#CC00BE"
2323
},
2424
"href": "https://hypermode.com/login"
25-
},
26-
{
27-
"anchor": "Dgraph Cloud",
28-
"icon": "cloud",
29-
"color": {
30-
"light": "#FF00EE",
31-
"dark": "#CC00BE"
32-
},
33-
"href": "https://cloud.dgraph.io"
34-
},
35-
{
36-
"anchor": "Agents Bootcamp",
37-
"icon": "calendar",
38-
"color": {
39-
"light": "#FF00EE",
40-
"dark": "#CC00BE"
41-
},
42-
"href": "https://docs.hypermode.com/agents/30-days-of-agents/overview"
4325
}
4426
]
4527
},
@@ -57,8 +39,7 @@
5739
"first-hypermode-agent",
5840
"first-sales-agent",
5941
"first-operations-agent",
60-
"agents/knowledge-graph-extraction",
61-
"semantic-search"
42+
"agents/knowledge-graph-extraction"
6243
]
6344
}
6445
]
@@ -172,32 +153,6 @@
172153
"agents/faq"
173154
]
174155
},
175-
{
176-
"group": "Apps",
177-
"pages": [
178-
"apps/overview",
179-
"apps/create-app",
180-
"apps/connect-app",
181-
"apps/develop-app",
182-
"apps/deploy-app"
183-
]
184-
},
185-
{
186-
"group": "Graphs",
187-
"pages": [
188-
"graphs/overview",
189-
"graphs/provision",
190-
"graphs/connect",
191-
"graphs/manage-schema",
192-
"graphs/manage-data",
193-
"graphs/manage-graph",
194-
"graphs/graph-mcp"
195-
]
196-
},
197-
{
198-
"group": "Tools",
199-
"pages": ["model-router", "hyp-cli"]
200-
},
201156
{
202157
"group": "Resources",
203158
"pages": ["security", "community-and-support", "hypermode-docs-mcp"]

introduction.mdx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,6 @@ Hypermode is a complete workbench for rapidly building agents with natural
2323
language. When you're ready to embed an agent into your app, eject to code and
2424
manage it as a backend service.
2525

26-
<CardGroup cols={2}>
27-
<Card title="Agents" icon="robot" href="agents/introduction">
28-
Craft powerful agents in natural language with access to your tools and data
29-
</Card>
30-
<Card title="Apps" icon="code" href="modus/overview">
31-
Build and deploy agents, flows, and AI-enabled services with more control
32-
</Card>
33-
<Card title="Graphs" icon="chart-network" href="graphs/overview">
34-
Organize your knowledge in a natural structure of nodes and relationships
35-
</Card>
36-
<Card title="Models" icon="cube" href="/model-router">
37-
Experiment rapidly with the most popular open source and commercial models
38-
</Card>
39-
</CardGroup>
40-
4126
## Built on open source
4227

4328
Hypermode leads and builds on a strong foundation of open source projects:

0 commit comments

Comments
 (0)