Skip to content

Commit c84a1a4

Browse files
CopilotKSemenenko
andcommitted
Fix markdown formatting for Azure Cosmos DB Setup section
Co-authored-by: KSemenenko <4385716+KSemenenko@users.noreply.github.com>
1 parent 9408e75 commit c84a1a4

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -398,19 +398,19 @@ The Cosmos adapter (`ManagedCode.GraphRag.CosmosDb`) targets the SQL API and wor
398398
1. **Provide a connection string.** Set `COSMOS_EMULATOR_CONNECTION_STRING` or configure options manually.
399399
2. **Register the store.**
400400
```csharp
401-
builder.Services.AddCosmosGraphStore("cosmos", options =>
402-
{
403-
options.ConnectionString = cosmosConnectionString;
404-
options.DatabaseId = "GraphRagIntegration";
405-
options.NodesContainerId = "nodes";
406-
options.EdgesContainerId = "edges";
407-
options.ConfigureClientOptions = clientOptions =>
408-
{
409-
clientOptions.GatewayModeMaxConnectionLimit = 100;
410-
};
411-
options.ConfigureSerializer = serializer => serializer.PropertyNamingPolicy = null;
412-
});
413-
```
401+
builder.Services.AddCosmosGraphStore("cosmos", options =>
402+
{
403+
options.ConnectionString = cosmosConnectionString;
404+
options.DatabaseId = "GraphRagIntegration";
405+
options.NodesContainerId = "nodes";
406+
options.EdgesContainerId = "edges";
407+
options.ConfigureClientOptions = clientOptions =>
408+
{
409+
clientOptions.GatewayModeMaxConnectionLimit = 100;
410+
};
411+
options.ConfigureSerializer = serializer => serializer.PropertyNamingPolicy = null;
412+
});
413+
```
414414
As with other adapters, the first Cosmos store becomes the unkeyed default. If you already have a `CosmosClient`, set `options.ClientFactory` to return it and GraphRAG will reuse that instance.
415415

416416
> **Tip:** `IGraphStore` now exposes full graph inspection and mutation helpers (`GetNodesAsync`, `GetRelationshipsAsync`, `DeleteNodesAsync`, `DeleteRelationshipsAsync`) in addition to the targeted APIs (`InitializeAsync`, `Upsert*`, `GetOutgoingRelationshipsAsync`). These use the same AGE-powered primitives, so you can inspect, prune, or export the graph without dropping down to concrete implementations.

0 commit comments

Comments
 (0)