Loading...

Streamline Location-Relevant Answers with SharePoint and Amazon Bedrock

Streamline Location-Relevant Answers with SharePoint and Amazon Bedrock

Global companies often face challenges in providing employees with location-relevant policies. For instance, leave policies in the USA differ significantly from those in India. However, when documents are stored together in systems like SharePoint without proper filtering, employees may waste time searching or risk following incorrect policies. The unfiltered content in Amazon Bedrock creates problems for its knowledge base by producing incorrect answers.

The Solution: Metadata Filtering with SharePoint and Amazon Bedrock

By integrating Amazon Bedrock Knowledge Bases with SharePoint and leveraging metadata filtering, companies can create intelligent Retrieval-Augmented Generation (RAG) systems. These systems automatically retrieve relevant policy documents based on location filters so employees get the right location-relevant information.

aws-bedrock-kb-sharepoint

How It Works (In Simple Terms)

  • Organize Documents in SharePoint: Assign metadata (e.g., country-relevant tags) to each document.
  • Connect SharePoint to Amazon Bedrock: Sync SharePoint as a data source for Amazon Bedrock Knowledge Bases.
  • Apply Metadata Filters: Use filters to retrieve only location-relevant content when employees query the system.

Real-World Example: Leave Policies

Consider leave policies for the USA and India:

  • USA Policy: Based on ACME Corporation’s USA Employee Leave Policy, employees receive different types of leave: Vacation Leave (0-2 years of service: 10 days/80 hours), Sick Leave - 5 days (40 hours) per calendar year. Additionally, employees receive paid holidays (11 days), bereavement leave, and jury duty leave. Eligible employees may receive up to 12 weeks for parental leave.
  • India Policy: According to ACME Corporation India’s leave policy, you are entitled to the following types of leave: Privilege/Earned Leave: 24 days per year, Sick/Casual Leave: 12 days per calendar year. Optional Holidays: 2 days per year. The policy includes other types of leave such as Maternity Leave: 26 weeks.

Disclaimer: The leave policies uploaded to SharePoint for this demonstration were created using AI. The AI generated policies are for illustrative purposes only.

Using metadata filtering:

  • Employees in the USA see only the USA policy.
  • Employees in India see only the India policy.

This eliminates confusion and ensures compliance.

Implementation Steps

Add metadata to your SharePoint documents

First, ensure your documents have the right metadata in SharePoint:

  1. We will use the default Title column in your SharePoint document library
  2. Assign “Leave_Policy_USA” or “Leave_Policy_India” to the appropriate documents

aws-bedrock-sp-0

Set up a connection between SharePoint and Amazon Bedrock

Next, set up a connection between SharePoint and Amazon Bedrock:

  1. In AWS console, create a new Knowledge Base
  2. Select SharePoint as your data source
  3. Set up SharePoint App-Only authentication to connect to SharePoint
  4. Sync the data source to begin indexing content from SharePoint

aws-bedrock-sp-5

aws-bedrock-sp-10

aws-bedrock-sp-11

Note: I’m still exploring how custom metadata columns can be used for unstructured data formats. If I find a solution, I’ll create a separate blog post. For now, we’ll focus on using the out-of-the-box metadata fields generated by the OpenSearch collection.

Test metadata filtering using sample queries to ensure accuracy

Let us test a few questions both with and without filters to see how the selected model generates responses. This will help demonstrate the difference in relevance and accuracy when metadata filtering is used. For this example, I’ve used the Nova Pro 1.0 model to generate the responses.

No Filter

As you can see, the answers are a mix of both USA and India policies, with chunks being pulled from documents for both regions.

aws-bedrock-sp-6

With x-amz-bedrock-kb-title ^ Leave_Policy_USA Filter

With the filter x-amz-bedrock-kb-title ^ Leave_Policy_USA, the response is clearly relevant to the USA, showing only the relevant policy for that region.

aws-bedrock-sp-7

With x-amz-bedrock-kb-title ^ Leave_Policy_India Filter

With the filter x-amz-bedrock-kb-title ^ Leave_Policy_India, the response is clearly relevant to the India, showing only the relevant policy for that region.

aws-bedrock-sp-8

Benefits of Metadata Filtering

  • Accurate Information: Employees access policies relevant to their region.
  • Time-Saving: Reduces time spent sifting through irrelevant documents.
  • Improved Compliance: Ensures employees follow the correct policies.
  • Centralized Management: All policies remain in one system for easy updates.

Conclusion

Combining SharePoint’s document management capabilities with Amazon Bedrock’s metadata filtering creates a powerful solution for global organizations. This approach simplifies policy management and ensures employees receive accurate, location-relevant information without requiring complex coding or major system changes.

Published on:

Learn more
Home | Joseph Velliah
Home | Joseph Velliah

Fulfilling God’s purpose for my life

Share post:

Related posts

Showing SharePoint Documents Grid on a Form Tab in Dynamics 365 CRM

Here's how you can add a Documents Tab to the main form in Dynamics 365 CRM. The post Showing SharePoint Documents Grid on a Form Tab in Dynam...

7 hours ago

Copilot in Teams admin center available in Public Preview

Copilot in Teams admin center is available in Public Preview, rolling out from June to July 2025. Admins with a Microsoft 365 Copilot license ...

11 hours ago

Group-less campaigns in Viva Amplify!

Group-less campaigns in Viva Amplify simplify campaign creation by removing the need for Microsoft 365 Groups or Teams channels. This update, ...

11 hours ago

Microsoft Viva Amplify: HPA Deprecation

Microsoft Viva Amplify is transitioning from App tokens to Protected Forwarded Tokens (PFTs) for enhanced security. This change limits publica...

11 hours ago

Microsoft Copilot: New Microsoft Teams notifications for Microsoft Copilot Academy users

New Microsoft Teams notifications for Microsoft Copilot Academy users will inform them about new courses starting late June 2025. Requires Tea...

11 hours ago

Microsoft Purview | Data Loss Prevention: Restrict Microsoft 365 Copilot using content with sensitivity labels

Microsoft Purview Data Loss Prevention (DLP) for Microsoft 365 Copilot is now generally available, allowing organizations to use DLP policies ...

11 hours ago

Microsoft Copilot (Microsoft 365): Add topic(s) through Copilot to your existing presentation

Microsoft PowerPoint for Windows desktop will introduce a Copilot feature in July 2025, allowing users to generate and insert new topic-specif...

11 hours ago

Microsoft Copilot (Microsoft 365): Add topic(s) through Copilot to your existing presentation – Windows

Microsoft PowerPoint for Windows desktop will introduce a Copilot feature in July 2025, allowing users to generate and insert new topics and s...

11 hours ago

Microsoft Copilot (Microsoft 365): Add topic(s) through Copilot to your existing presentation

Microsoft PowerPoint for Mac will introduce a Copilot feature in July 2025, allowing users to generate new topic ideas and slides that match t...

11 hours ago

Microsoft 365 Copilot: Retirement of Visual Creator Agent in Copilot Chat

Microsoft 365 Copilot will retire the Visual Creator agent in Copilot Chat by late July 2025. Users can continue generating images in Copilot ...

11 hours ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy