Skip to content

❗BUG❗ : Duplicate Datasets Appearing in Search Results of agent #68

@Areeba-Tahir-18

Description

@Areeba-Tahir-18

Problem

While interacting with the KnowledgeSpace UI search from a time , I noticed that same datasets appear multiple times. I started thinking about why this happens why i am seeing same dataset in search result 2 times ??

  • Multiple sources: The same dataset may exist in more than one datasource.
  • Metadata variations: Enrichment adds metadata or URLs that are slightly different.
  • Title differences: The same dataset might have small variations in its title across sources.
  • Different IDs: id or dataset identifiers can differ even for the same logical dataset.

Then i decide to solve this problem and here is my approach for solving this .

Proposed Solution :

--> Use a multi-layer deduplication strategy:

  1. Canonical Identity: Combine datasource_id + dataset_id to identify duplicates.
  2. URL Normalization : Remove query parameters to unify different links.
  3. Fuzzy Title Matching: Detect minor variations in titles and merge duplicates.

Expected Impact on Knowledge-space-agent searching

  • Each dataset appears only once in the UI search results.
  • Improves user experience, making results cleaner and easier to navigate.
  • Reduces confusion caused by repeated entries.
  • Provides a foundation for future improvements, like semantic deduplication or hybrid search ranking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions