Skip to content

Commit 3fe7b04

Browse files
authored
refresh Hypermode docs (#109)
* refit for Dgraph integration * . * . * Update introduction.mdx * Update introduction.mdx * Update introduction.mdx * more content * updates * titles
1 parent e863b25 commit 3fe7b04

18 files changed

+358
-71
lines changed

badger/overview.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
2-
title: Overview
2+
title: Badger
33
description: Welcome to the Badger docs!
44
mode: "wide"
5+
sidebarTitle: "Overview"
56
"og:title": "Overview - Badger"
67
---
78

community-and-support.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ If you encounter a bug or have a feature request, you can open an issue on the
1818
relevant GitHub repository:
1919

2020
- [Modus](https://github.com/hypermodeinc/modus/issues)
21-
- [Hyp CLI](https://github.com/hypermodeinc/hyp-cli/issues)
21+
- [Dgraph](https://github.com/hypermodeinc/dgraph/issues)
2222
- [Badger](https://github.com/hypermodeinc/badger/issues)
23+
- [Hyp CLI](https://github.com/hypermodeinc/hyp-cli/issues)
2324

2425
All paid Hypermode packages include commercial support. Customers can reach out
2526
via the Hypermode Console or through email at

docs.json

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,17 @@
1515
"groups": [
1616
{
1717
"group": "Getting Started",
18-
"pages": ["introduction", "quickstart"]
18+
"pages": ["introduction", "semantic-search"]
1919
},
2020
{
21-
"group": "Develop",
21+
"group": "Graphs",
2222
"pages": [
23-
"work-locally",
24-
"deploy",
25-
"configure-environment",
26-
"integrate-api",
27-
"observe-functions"
28-
]
29-
},
30-
{
31-
"group": "Tutorials",
32-
"pages": ["semantic-search"]
33-
},
34-
{
35-
"group": "Manage",
36-
"pages": [
37-
"create-project",
38-
"modify-project",
39-
"modify-organization",
40-
"user-management"
23+
"graphs/overview",
24+
"graphs/deploy",
25+
"graphs/connect",
26+
"graphs/manage-schema",
27+
"graphs/manage-data",
28+
"graphs/manage-graph"
4129
]
4230
},
4331
{

graphs/connect.mdx

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: Connect to Graph
3+
description: Connect to your graph from a SDK, IDE, or Modus
4+
---
5+
6+
## Connection strings
7+
8+
A connection string is a URL that contains all of the necessary information to
9+
connect to your graph from a Dgraph client or Modus. It is displayed after you
10+
deploy your graph.
11+
12+
## Authentication
13+
14+
Your graph endpoint is protected by bearer token authorization passed in the
15+
`Authorization` header as an API key. You can find your API key in the console
16+
alongside your graph connection details. The API key is already included in the
17+
connection string.
18+
19+
<Warning>
20+
If you remove your API key from your graph, it is made publicly accessible
21+
with no authentication.
22+
</Warning>
23+
24+
## Clients
25+
26+
Dgraph includes a web client and language-specific SDKs for programmatically
27+
working with your graph. When using the auto-generated GraphQL API, you can use
28+
any GraphQL client to work with your graph.
29+
30+
### Ratel
31+
32+
Dgraph includes Ratel, a web client for easily connecting to and exploring your
33+
graph. Ratel is available hosted at https://ratel.hypermode.com. To connect to
34+
your graph, paste your connection string into the Ratel interface and click
35+
`Connect`.
36+
37+
### Dgraph SDKs
38+
39+
Dgraph SDKs are available for a number of languages, including
40+
[Go](/dgraph/sdks/go), [Python](/dgraph/sdks/python), [Java](/dgraph/sdks/java),
41+
and [JavaScript](/dgraph/sdks/javascript). The SDKs have been updated to support
42+
the connection string for connecting to your graph on Hypermode. Ensure you're
43+
running the latest version of the SDK for your language.
44+
45+
### GraphQL clients
46+
47+
When working with your graph through the auto-generated GraphQL API, you can use
48+
any [GraphQL IDE or client](/dgraph/graphql/connecting) to connect to your
49+
graph.
50+
51+
### Modus
52+
53+
Modus provides a framework for integrating data from your graph into a complete
54+
AI-ready backend. Learn more on
55+
[connecting Modus to your graph](/modus/data-fetching#dgraph).

graphs/deploy.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Deploy Graph
3+
description: Deploy a new graph and configure its resources
4+
---
5+
6+
From your workspace home, click `Create new graph`. You are prompted to name
7+
your graph and select the [region](./manage-graph#region-availability) for
8+
deployment. Once deployed, your [connection string](./connect) is displayed.
9+
10+
<Frame>
11+
<img src="/images/graphs/create-graph.png" alt="Create graph" />
12+
</Frame>

graphs/manage-data.mdx

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: Manage Data
3+
description: Query, mutate, and bulk manage data from your graph
4+
---
5+
6+
Querying (reading) and mutating (writing) data to your graph is simple using an
7+
[IDE or SDK](./connect). For bulk operations, there are tools for importing,
8+
exporting, and dropping data.
9+
10+
## Import data
11+
12+
Dgraph provides multiple tools for importing data to your graph, whether an
13+
[initial import to an empty graph](/dgraph/admin/bulk-loader) or an
14+
[incremental import](/dgraph/admin/live-loader).
15+
16+
You can also [load CSV-formatted data](/dgraph/admin/import-csv).
17+
18+
## Export data
19+
20+
If you need to export data from your graph, please reach out to support and we
21+
can assist.
22+
23+
<Note>Self-service for exporting data is coming soon.</Note>
24+
25+
## Drop data
26+
27+
Dropping data from your graph is a permanent action and can't be undone. To drop
28+
data from your graph, you can use the `/alter` endpoint.
29+
30+
To drop all data from your graph, while maintaining the schema:
31+
32+
```sh
33+
curl -X POST https://<my-database>.hypermode.host/dgraph/alter \
34+
--header "Authorization: Bearer $BEARER_TOKEN" \
35+
--header "Content-Type: application/json" \
36+
--data '{"drop_op": "DATA"}'
37+
```
38+
39+
For more options, see [Dgraph's documentation](/dgraph/admin/drop-data).

graphs/manage-graph.mdx

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
title: Manage Graph
3+
description: Manage your graph's resources and configuration
4+
---
5+
6+
## Region availability
7+
8+
Graphs on Hypermode are available in the following regions:
9+
10+
| Region | Location |
11+
| :----- | :-------------------- |
12+
| `iad1` | Washington, D.C., USA |
13+
| `pdx1` | Portland, Oregon, USA |
14+
15+
Additional regions are planned to be available in the near future:
16+
17+
- Frankfurt, Germany
18+
- Dublin, Ireland
19+
- Singapore
20+
21+
## Scaling
22+
23+
Graph compute is measured in gigabytes (GB) of memory, with 1 vCPU allocated per
24+
4 gigabytes of memory. On Hypermode, you're charged for the compute allocated to
25+
your graph, billed to the second. That means when your graph is scaled to zero,
26+
you're only billed for the underlying storage.
27+
28+
### Scale to zero
29+
30+
By default, new graphs scale to zero after five minutes of inactivity. When a
31+
new query or mutation is received, the graph scales up and process that request.
32+
33+
You can configure the scaling behavior for your graph by increasing the idle
34+
period. Set the idle period to `0` to turn off scale to zero.
35+
36+
### Autoscaling
37+
38+
Autoscaling is a feature that automatically scales your graph based on the
39+
compute and memory load. When under sustained load, the graph scales up to
40+
handle the additional load. When the load subsides, the graph scales down
41+
automatically.
42+
43+
You can configure the autoscaling behavior for your graph by setting the `min`
44+
and `max` values. The `min` value is the minimum number of compute units the
45+
graph has, and the `max` value is the maximum number of compute units the graph
46+
can scale to.
47+
48+
### Storage
49+
50+
You are billed only for the storage used by your graph. The storage is
51+
automatically provisioned and expanded based on the growth of data within your
52+
graph.
53+
54+
## Backups
55+
56+
Your graph on Hypermode is automatically backed up every four hours, with
57+
backups stored with zonal isolation. To restore your graph to a previous state,
58+
please reach out to support via the console.
59+
60+
<Note>User control of backup frequency and restore is coming soon.</Note>

graphs/manage-schema.mdx

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: Manage Schema
3+
description: Load and update the schema of your graph
4+
---
5+
6+
When working with Dgraph, defining a schema is optional! Start schema-less and
7+
layer on a DQL or GraphQL-based modeling approach when needed.
8+
9+
## Schema-less default
10+
11+
Graphs running in Hypermode use Dgraph's `flexible` schema mode. This mode
12+
allows you to run a mutation without declaring the predicate in your schema.
13+
14+
When a mutation introduces a new predicate, Dgraph automatically adds it to the
15+
schema. This can be useful when you're in the early stages of a project and the
16+
schema is evolving frequently and for allowing AI agents to augment your
17+
knowledge graph.
18+
19+
## Deploy a DQL schema
20+
21+
To deploy a [DQL schema](/dgraph/dql/schema), place the schema in a file
22+
(`schema.dql` in this case) and make a POST request to the `/dgraph/alter`
23+
endpoint for your host.
24+
25+
```sh
26+
curl -X POST https://<my-database>.hypermode.host/dgraph/alter \
27+
--header "Authorization: Bearer $BEARER_TOKEN" \
28+
--header "Content-Type: application/json" \
29+
--data-binary "@schema.dql"
30+
```
31+
32+
## Deploy a GraphQL schema
33+
34+
To deploy a [GraphQL schema](/dgraph/graphql/schema), place the schema in a file
35+
(`schema.graphql` in this case) and make a POST request to the
36+
`/dgraph/admin/schema` endpoint for your host.
37+
38+
```sh
39+
curl -X POST https://<my-database>.hypermode.host/dgraph/admin/schema \
40+
--header "Authorization: Bearer $BEARER_TOKEN" \
41+
--header "Content-Type: application/json" \
42+
--data-binary "@schema.graphql"
43+
```

graphs/overview.mdx

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: Graphs
3+
description: A fully managed graph database service powered by Dgraph
4+
mode: "wide"
5+
sidebarTitle: Overview
6+
---
7+
8+
Graphs on Hypermode provides a fully managed [Dgraph](/dgraph) service for
9+
building and deploying knowledge graphs. This service combines the power of
10+
Dgraph's distributed graph database with Hypermode's AI development platform,
11+
offering a seamless experience for developers and organizations of all sizes.
12+
13+
## Key features
14+
15+
| Feature | Description |
16+
| :-------------------------------------------------------- | :------------------------------------------------------------------------------- |
17+
| [Scale to Zero](./manage-graph#scale-to-zero) | automatically scale down after periods of inactivity and scale back up on demand |
18+
| [Autoscaling](./manage-graph#autoscaling) | dynamic resource allocation based on workload demands |
19+
| [Flexible Schema Options](./manage-schema) | start schema-less or define structured schemas using DQL or GraphQL |
20+
| [Regional Deployment](./manage-graph#region-availability) | deploy in multiple regions for low-latency access |
21+
| [Modus Integration](/modus/data-fetching#dgraph) | seamlessly integrate with Hypermode's Modus framework for AI-ready backends |
22+
| [Fully Managed Service](./manage-graph) | deploy, scale, and operate your graph database without infrastructure headaches |
23+
24+
## Getting started
25+
26+
To get started with Graphs on Hypermode:
27+
28+
1. **[Deploy a new graph](./deploy)**: create your graph database
29+
2. **[Connect to your graph](./connect)**: use connection strings to access your
30+
graph from various clients
31+
3. **[Manage your schema](./manage-schema)**: define your graph structure using
32+
DQL or GraphQL _(optional)_
33+
4. **[Manage data](./manage-data)**: add, query, and manipulate data in your
34+
graph
35+
36+
## Use cases
37+
38+
Graphs on Hypermode is ideal for:
39+
40+
- Knowledge graphs for AI apps
41+
- Social networks and recommendation systems
42+
- Fraud detection and pattern recognition
43+
- Content management systems with rich interconnections
44+
- Complex relationship modeling
45+
- Any app requiring efficient traversal of connected data
46+
47+
## Why Graphs on Hypermode?
48+
49+
Traditional data stores struggle with highly connected data and complex
50+
relationship queries, which are often found in knowledge graphs. Graph stores
51+
like Dgraph excel at modeling and querying relationships, making them perfect
52+
for building with AI services, where connections between data points are as
53+
important as the data itself.
54+
55+
Hypermode's managed service eliminates the operational complexity of running
56+
Dgraph, allowing you to focus on building your app while we handle scaling,
57+
backups, and infrastructure management.

hosted-models.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ description: "Iterate quickly with seamless access to the most popular models"
44
---
55

66
Hypermode includes a set of shared models available for integration into your
7-
app on a pay-per-token basis.
7+
app.
88

99
Need a bespoke model? You can include a model from
1010
[Hugging Face](https://huggingface.co/) in your
1111
[app manifest](/modus/app-manifest) and Hypermode runs and manages it for you.
1212

1313
## Setup
1414

15-
To use a Hypermode-hosted model, set `connection: "hypermode"`,
16-
`provider: "hugging-face"`, and set `sourceModel` to be the model name as
17-
specified on Hugging Face.
15+
To use a Hypermode-hosted model, in your [app manifest](/modus/app-manifest) set
16+
`connection: "hypermode"`, `provider: "hugging-face"`, and set `sourceModel` to
17+
be the model name as specified on Hugging Face.
1818

1919
```json modus.json {3-7}
2020
{
@@ -32,8 +32,8 @@ specified on Hugging Face.
3232

3333
## Deployment mode
3434

35-
We run our most popular models as multi-tenant, shared instances across projects
36-
and customers.
35+
We run our most popular models as multi-tenant, shared instances across
36+
workspaces and customers.
3737

3838
By default, if the model you use is available as a shared model, your app uses
3939
these shared models at runtime. If the model you use isn't available as a shared

hyp-cli.mdx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ title: Hyp CLI
33
description: "Comprehensive reference for the Hyp CLI commands and usage"
44
---
55

6-
Hyp CLI is a command-line tool for managing your Hypermode account and projects.
7-
When using Hyp CLI alongside the Modus CLI, users get access to
8-
[Hypermode-hosted models](/hosted-models).
6+
Hyp CLI is a command-line tool for managing your Hypermode account and apps.
7+
When using Hyp CLI alongside the Modus CLI, your apps automatically connect to
8+
[Hypermode-hosted models](/hosted-models) when working locally.
99

1010
## Install
1111

@@ -20,14 +20,20 @@ npm install -g @hypermode/hyp-cli
2020
### `login`
2121

2222
Log in to your Hypermode account. When executed, this command redirects to the
23-
Hypermode website to authenticate. It stores an authentication token locally and
23+
Hypermode console to authenticate. It stores an authentication token locally and
2424
prompts you to select your organization context.
2525

2626
### `logout`
2727

2828
Log out of your Hypermode account. This command clears your local authentication
2929
token.
3030

31+
### `link`
32+
33+
Link your GitHub repo to a Hypermode project. The command adds a default GitHub
34+
Actions workflow to build your Modus app and a Hypermode GitHub app for
35+
auto-deployment on commit.
36+
3137
### `org switch`
3238

3339
Switch to a different org context within the CLI session.

images/graphs/create-graph.png

146 KB
Loading

0 commit comments

Comments
 (0)