Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pages/deployment/workloads/memgraph-in-graphrag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@ This command retrieves the graph schema in **constant time**, enabling the LLM t
minimal overhead. It’s a key part of the retrieval pipeline that helps bridge natural language questions and
structured graph queries.

Additionally, `SHOW SCHEMA INFO;` is integrated with [fine-grained access control](/querying/schema#schema-with-memgraph-enterprise),

allowing you to restrict specific users or agents from viewing the full graph schema. This is particularly useful
when working with LLMs, as it helps reduce schema noise in large enterprise graphs with many use cases.
Limiting the visible schema ensures that the LLM focuses on relevant parts of the graph, improving its ability to
generate meaningful answers or queries.

While there's no single query pattern that fits all GraphRAG use cases. Since LLMs generate a wide variety of
questions, **multi-hop queries** (i.e., traversals across multiple relationships) stand to benefit significantly from
Memgraph’s **in-memory architecture**, offering fast and consistent response times even under complex traversal logic.
Expand Down
6 changes: 6 additions & 0 deletions pages/querying/schema.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ Enabling `--schema-info-enabled` incurs a performance cost because additional wo
* __Edge Property Type Changes__: Modifying the type of an edge's property may require scanning large portions of the graph. To avoid this, define edges and their properties in the same transaction and keep property types stable.
* __Recovery Using WALs__: Recovering edges with properties via Write-Ahead Log (WAL) files can cause a significant performance hit. To mitigate this, use snapshots instead. Starting from v2.21, this issue has been alleviated, when using WAL files created by v2.21+.

### Schema with Memgraph Enterprise

`SHOW SCHEMA INFO;` returns the schema for the entire graph. However, if the system is configured with users that have [fine-grained access control](/database-management/authentication-and-authorization/role-based-access-control#label-based-access-control),
the returned schema will be filtered according to each user’s visibility settings. Similar to how a user can only see the portion of the graph permitted by fine-grained access controls,
the `SHOW SCHEMA INFO;` command will also return only the nodes and relationships for which the user has `READ` permissions.

## Schema metadata

Schema metadata is a light weight run-time schema tracking. To enable schema metadata queries, start Memgraph with the `--storage-enable-schema-metadata` [configuration flag](/configuration/configuration-settings#storage) set to `True`. The flag facilitates the utilization of a specialized cache designed to store specific metadata related to the database.
Expand Down