# Function buildDocumentGroundingConfig

- buildDocumentGroundingConfig(
  groundingConfig: DocumentGroundingServiceConfig,
  ): GroundingModule

  Convenience function to create Document Grounding configuration.

  #### Parameters

  - groundingConfig: DocumentGroundingServiceConfig

    Configuration for the document grounding service.

  #### Returns GroundingModule

  An object with the full grounding configuration.

  Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

  - Defined in packages/orchestration/dist/util/grounding.d.ts:7