Add ‘memory’ and Knowledge Graph connection to your app.
Integrating Dgraph in Modus is a powerful solution to expose AI services with
“memory” or to create, maintain and leverage knowledge graphs.After you have initialized a Modus app, you can:
Declare the connection in the App Manifest
Edit the App Manifest to declare a connection to the
Dgraph instance using the
Dgraph connection string.For local instance of Dgraph, the connection string is
dgraph://localhost:9080.
For a Graph on Hypermode, the connection string is available from the
Hypermode dashboard.
Make sure to use a variable for the bearer token so you don’t commit secrets
in your project!
modus.json
Copy
Ask AI
"connections": { // This defines a dgraph connection // Get the connection string from the Hypermode dashboard. // use a variable for bearer token "my-dgraph": { "type": "dgraph", "connString": "dgraph://modus-recipes-backend-hypermode.hypermode.host:443?sslmode=verify-ca&bearertoken={{API_KEY}}" } }