Skip to content

Faiss ivf index - #11992

Merged
ea-rus merged 48 commits into
releases/26.0.0from
faiss_ds3
Jan 28, 2026
Merged

ea-rus merged 48 commits into
releases/26.0.0from
faiss_ds3

Conversation

@ea-rus

@ea-rus ea-rus commented Dec 9, 2025 •

Copy link
Copy Markdown
Contributor

Description

Create IVF index for FAISS knowledge base

Example

CREATE INDEX ON KNOWLEDGE_BASE my_kb WITH (
  nlist=10,
  train_count=1000
)

Parameters:

  • nlist: number of clusters for IVF. Default is 1024
  • train_count: number of vectors to use for training. Default is 10k

It is not possible to create IVF index for empty faiss knowledge base because it requires data to train index. The size of the train data and also count of clusters can affect on index quality

Depends mindsdb/mindsdb_sql_parser#75

Fixes https://linear.app/mindsdb/issue/FQE-1868/faiss-ivf-index

Type of change

  • ⚡ New feature (non-breaking change which adds functionality)

Verification Process

To ensure the changes are working as expected:

  • Test Location: Specify the URL or path for testing.
  • Verification Steps: Outline the steps or queries needed to validate the change. Include any data, configurations, or actions required to reproduce or see the new functionality.

Additional Media:

  • I have attached a brief loom video or screenshots showcasing the new functionality or change.

Checklist:

  • My code follows the style guidelines(PEP 8) of MindsDB.
  • I have appropriately commented on my code, especially in complex areas.
  • Necessary documentation updates are either made or tracked in issues.
  • Relevant unit and integration tests are updated or added.

# Conflicts:
#	mindsdb/integrations/handlers/duckdb_faiss_handler/duckdb_faiss_handler.py
#	mindsdb/integrations/handlers/duckdb_faiss_handler/faiss_index.py
@ea-rus
ea-rus changed the base branch from main to releases/v26.0.0 January 20, 2026 06:49
@github-actions

github-actions Bot commented Jan 20, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@ea-rus
ea-rus changed the base branch from releases/v26.0.0 to releases/26.0.0 January 20, 2026 06:51
@ea-rus
ea-rus merged commit 1503aee into releases/26.0.0 Jan 28, 2026
18 checks passed
@ea-rus
ea-rus deleted the faiss_ds3 branch January 28, 2026 09:10
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 28, 2026

This branch was previously deployed

1 inactive deployment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants