Skip to content

Allow sparse_vectors to be passed to collections.create#25

Merged
andreibondarev merged 1 commit intopatterns-ai-core:mainfrom
AliOsm:patch-1
Apr 11, 2025
Merged

Allow sparse_vectors to be passed to collections.create#25
andreibondarev merged 1 commit intopatterns-ai-core:mainfrom
AliOsm:patch-1

Conversation

@AliOsm
Copy link
Contributor

@AliOsm AliOsm commented Apr 11, 2025

This PR supports sparse vectors in Qdrant:
https://qdrant.tech/documentation/concepts/vectors/#sparse-vectors

Tested on one of my projects and it is working as expected, sample:

Qdrant::Client.new(url: 'http://localhost:6333').collections.create(
  collection_name: 'test',
  vectors: {},
  sparse_vectors: {
    'qdrant--bm25': {
      modifier: :idf
    }
  }
)

@andreibondarev andreibondarev merged commit b418736 into patterns-ai-core:main Apr 11, 2025
4 checks passed
@AliOsm AliOsm deleted the patch-1 branch April 11, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants