Vector Database Index Generation via Dynamic Parameter Segmentation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing vector databases constructed using HNSW do not adequately balance index construction speed and query efficiency, affecting user experience.

Innovation Solution

A method involving the determination of two parameter groups for constructing indices in a vector database, where the second parameter group has greater values than the first, allowing for the construction of a second index that replaces the initial index once completed, thereby improving efficiency and reliability.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If a single index is constructed using HNSW with default parameters, then the index construction speed is maintained, but the query effect is insufficient

Engineering Contradiction:
Improveindex construction speedVSAvoidquery effect
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The patent divides the index construction process into two distinct phases: a fast initial index construction phase using default parameters, and a subsequent optimization phase that constructs a second index with optimized parameters. This segmentation allows the system to achieve both fast initial response and improved query performance.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary index construction with default parameters to enable immediate query functionality, then subsequently optimizes the index by constructing a second index with optimized parameters. This preliminary action ensures the system is operational while allowing for later performance enhancement.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If the second index with optimized parameters is constructed immediately, then the query effect is improved, but the index construction time increases

Engineering Contradiction:
Improvequery effectVSAvoidindex construction time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs preliminary construction of a first index using default parameters, enabling immediate query functionality. The second optimized index is constructed only when necessary, minimizing the time loss while ensuring query performance improvement when needed.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements a dynamic index management strategy where the system switches from the first index to the second optimized index based on query performance requirements. This dynamic approach allows the system to adapt between fast construction and optimized query performance based on actual needs.

Inventive Principle:
Principle #15Dynamics

3Device complexity

If only one index is maintained, then the device complexity is low, but the overall efficiency is limited

Engineering Contradiction:
Improveindex management complexityVSAvoidquery efficiency
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The patent segments the index system into two distinct index structures with different optimization characteristics. This segmentation enables the system to leverage the strengths of each index type, achieving higher overall productivity while managing complexity through clear separation of concerns.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent employs different parameter configurations for the two indexes, with the first index using default parameters for fast construction and the second index using optimized parameters for improved query efficiency. This parameter differentiation allows the system to achieve high productivity without excessive complexity.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12298956B2Method and apparatus for generating index, and electronic device
Publication Date: 2025.05.13 BEIJING BAIDU NETCOM SCI & TECH CO LTD
  • US12298956B2 patent drawing
  • US12298956B2 patent drawing
  • US12298956B2 patent drawing

AI summary

A method for generating an index, and an electronic device are provided. The detailed solution includes: determining a first parameter group and a second parameter group in response to receiving a query request for a first vector database and there being no available index for the first vector database, constructing a first index for the first vector database based on the first parameter group, and querying the first vector database based on the first index; constructing a second index for the first vector database based on the second parameter group in response to meeting a preset condition; and in response to determining that construction of the second index is completed, deleting the first index, and querying the first vector database based on the second index.