@@ -57,9 +57,9 @@ The retriever fetches documents using your vector store's semantic search, then
5757Only documents that ` alice ` has the ` view ` permission for are returned.
5858
5959<Callout type = " info" >
60- Each document's metadata must include a field (specified by ` resource_id_key ` )
61- that contains the resource identifier used in SpiceDB. This is how the library
62- knows which SpiceDB resource to check permissions against.
60+ Each document's metadata must include a field (specified by ` resource_id_key ` ) that contains the
61+ resource identifier used in SpiceDB. This is how the library knows which SpiceDB resource to check
62+ permissions against.
6363</Callout >
6464
6565** When to use this approach:**
@@ -194,9 +194,9 @@ The authorization node reads documents from `state["retrieved_documents"]`, chec
194194Authorization metrics are automatically included in ` state["auth_results"] ` .
195195
196196<Callout type = " info" >
197- LangGraph is ideal when you need explicit control over each pipeline step,
198- want to maintain state across multiple conversation turns, or need complex
199- branching logic based on authorization results.
197+ LangGraph is ideal when you need explicit control over each pipeline step, want to maintain state
198+ across multiple conversation turns, or need complex branching logic based on authorization
199+ results.
200200</Callout >
201201
202202** When to use this approach:**
@@ -363,9 +363,9 @@ The library checks permissions for `document:123` when evaluating this document.
363363If ` resource_id_key ` doesn't match a field in the document's metadata, that document will be filtered out.
364364
365365<Callout type = " warning" >
366- Ensure all documents in your vector store include the resource ID field.
367- Documents missing this field will be silently excluded from results, which can
368- lead to incomplete answers without explicit errors.
366+ Ensure all documents in your vector store include the resource ID field. Documents missing this
367+ field will be silently excluded from results, which can lead to incomplete answers without
368+ explicit errors.
369369</Callout >
370370
371371## Authorization Metrics
@@ -462,9 +462,9 @@ This flexibility allows you to choose the best vector store for your use case wi
462462### Error Handling
463463
464464<Callout type = " warning" >
465- Never fall back to unfiltered results when authorization fails. This creates a
466- path for information leakage during system outages. Instead, return an error
467- to the user or empty results with an explanation.
465+ Never fall back to unfiltered results when authorization fails. This creates a path for
466+ information leakage during system outages. Instead, return an error to the user or empty results
467+ with an explanation.
468468</Callout >
469469
470470``` python
0 commit comments