Skip to content

Commit

Permalink
Stabilize vector_store
Browse files Browse the repository at this point in the history
This experimental feature is no longer experimental.
Fixes meilisearch#605
  • Loading branch information
ellnix committed Feb 7, 2025
1 parent 0121676 commit 20e01d3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion spec/meilisearch/index/documents_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
end

it 'allows the user to store vectors' do
client.update_experimental_features(vector_store: true)
new_doc = { objectId: 123, _vectors: { default: [0.1, 0.2, 0.3] } }
client.create_index('vector_test').await
new_index = client.index('vector_test')
Expand Down
2 changes: 0 additions & 2 deletions spec/meilisearch/index/search/similar_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
end

it 'does a search for similar documents' do
client.update_experimental_features(vector_store: true)

documents = [
{
title: 'Shazam!',
Expand Down
2 changes: 0 additions & 2 deletions spec/meilisearch/index/search/vector_search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

RSpec.describe 'Meilisearch::Index - Vector search' do
it 'does a basic search' do
client.update_experimental_features(vector_store: true)

documents = [
{ objectId: 0, _vectors: { custom: [0, 0.8, -0.2] }, title: 'Across The Universe' },
{ objectId: 1, _vectors: { custom: [1, -0.2, 0] }, title: 'All Things Must Pass' },
Expand Down
5 changes: 1 addition & 4 deletions spec/meilisearch/index/settings_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -852,10 +852,7 @@
let(:index) { client.index(uid) }
let(:default_embedders) { nil }

before do
client.create_index(uid).await
client.update_experimental_features(vector_store: true)
end
before { client.create_index(uid).await }

it '#embedders gets default value' do
expect(index.embedders).to eq(default_embedders)
Expand Down

0 comments on commit 20e01d3

Please sign in to comment.