Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    CastError
Message:      Couldn't cast
model: string
revision: string
dim: int64
dtype: string
max_length: int64
prompt: null
encoder_code: string
datasets: struct<fiqa: struct<n_docs: int64, encoded_on: string, doc_vecs.npy: string, doc_ids.json: string>,  (... 90 chars omitted)
  child 0, fiqa: struct<n_docs: int64, encoded_on: string, doc_vecs.npy: string, doc_ids.json: string>
      child 0, n_docs: int64
      child 1, encoded_on: string
      child 2, doc_vecs.npy: string
      child 3, doc_ids.json: string
  child 1, nq: struct<n_docs: int64, encoded_on: string, doc_vecs.npy: string, doc_ids.json: string>
      child 0, n_docs: int64
      child 1, encoded_on: string
      child 2, doc_vecs.npy: string
      child 3, doc_ids.json: string
to
{'text': Value('string')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 810, in write_table
                  self.write_rows_on_file()  # in case there are buffered rows to write first
                  ~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 690, in write_rows_on_file
                  self._write_table(table)
                  ~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              model: string
              revision: string
              dim: int64
              dtype: string
              max_length: int64
              prompt: null
              encoder_code: string
              datasets: struct<fiqa: struct<n_docs: int64, encoded_on: string, doc_vecs.npy: string, doc_ids.json: string>,  (... 90 chars omitted)
                child 0, fiqa: struct<n_docs: int64, encoded_on: string, doc_vecs.npy: string, doc_ids.json: string>
                    child 0, n_docs: int64
                    child 1, encoded_on: string
                    child 2, doc_vecs.npy: string
                    child 3, doc_ids.json: string
                child 1, nq: struct<n_docs: int64, encoded_on: string, doc_vecs.npy: string, doc_ids.json: string>
                    child 0, n_docs: int64
                    child 1, encoded_on: string
                    child 2, doc_vecs.npy: string
                    child 3, doc_ids.json: string
              to
              {'text': Value('string')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 8 new columns ({'dim', 'max_length', 'datasets', 'prompt', 'encoder_code', 'dtype', 'model', 'revision'}) and 1 missing columns ({'text'}).
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/Qdrant/constella-demo-vectors/nq/doc_ids.json (at revision 8dea0dd5adf15a9e53fc8f366704a5e319ff88cf), ['hf://datasets/Qdrant/constella-demo-vectors@8dea0dd5adf15a9e53fc8f366704a5e319ff88cf/fiqa/doc_ids.json', 'hf://datasets/Qdrant/constella-demo-vectors@8dea0dd5adf15a9e53fc8f366704a5e319ff88cf/manifest.json', 'hf://datasets/Qdrant/constella-demo-vectors@8dea0dd5adf15a9e53fc8f366704a5e319ff88cf/nq/doc_ids.json'], ['hf://datasets/Qdrant/constella-demo-vectors@8dea0dd5adf15a9e53fc8f366704a5e319ff88cf/fiqa/doc_ids.json', 'hf://datasets/Qdrant/constella-demo-vectors@8dea0dd5adf15a9e53fc8f366704a5e319ff88cf/manifest.json', 'hf://datasets/Qdrant/constella-demo-vectors@8dea0dd5adf15a9e53fc8f366704a5e319ff88cf/nq/doc_ids.json']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1876, in _prepare_split_single
                  num_examples, num_bytes = writer.finalize()
                                            ~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 830, in finalize
                  self.write_rows_on_file()
                  ~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 690, in write_rows_on_file
                  self._write_table(table)
                  ~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              model: string
              revision: string
              dim: int64
              dtype: string
              max_length: int64
              prompt: null
              encoder_code: string
              datasets: struct<fiqa: struct<n_docs: int64, encoded_on: string, doc_vecs.npy: string, doc_ids.json: string>,  (... 90 chars omitted)
                child 0, fiqa: struct<n_docs: int64, encoded_on: string, doc_vecs.npy: string, doc_ids.json: string>
                    child 0, n_docs: int64
                    child 1, encoded_on: string
                    child 2, doc_vecs.npy: string
                    child 3, doc_ids.json: string
                child 1, nq: struct<n_docs: int64, encoded_on: string, doc_vecs.npy: string, doc_ids.json: string>
                    child 0, n_docs: int64
                    child 1, encoded_on: string
                    child 2, doc_vecs.npy: string
                    child 3, doc_ids.json: string
              to
              {'text': Value('string')}
              because column names don't match
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

text
string
3
31
56
59
63
100
108
125
132
138
158
164
178
180
222
225
239
264
277
288
289
294
297
302
316
330
339
343
357
396
402
412
417
425
433
438
441
455
462
470
475
478
530
534
536
548
589
593
617
628
635
640
643
645
648
654
662
664
667
680
687
690
692
703
725
738
748
750
751
752
773
775
780
789
799
800
802
803
815
863
865
878
879
886
890
902
915
920
933
958
962
984
985
991
994
995
996
1001
1011
1034
End of preview.

Constella workload studio document vectors

Stella (NovaSearch/stella_en_400M_v5) document vectors for two BEIR corpora. They let you build the Qdrant Edge index behind the Constella workload studio without encoding the corpus yourself.

dataset passages file size
fiqa/ 57,638 118 MB
nq/ 2,681,468 5.5 GB

Each folder holds doc_vecs.npy (float16, shape [n, 1024]) and doc_ids.json. Row i is the document doc_ids[i]. The files contain vectors and BEIR document IDs only, no passage text. manifest.json lists the model revision, encoding settings and SHA-256 of every file.

Use

The studio's index build downloads these files when no local vectors exist:

.venv/bin/python m15src/talk_edge.py build fiqa
.venv/bin/python m15/talk/demo/studio/app.py

To load them directly:

import json, numpy as np
from huggingface_hub import hf_hub_download

repo = "Qdrant/constella-demo-vectors"
vecs = np.load(hf_hub_download(repo, "fiqa/doc_vecs.npy", repo_type="dataset"))
ids = json.load(open(hf_hub_download(repo, "fiqa/doc_ids.json", repo_type="dataset")))

Query with the matching Constella query encoders: Qdrant/constella-nano, Qdrant/constella-zero, or Stella itself with its query prompt.

How they were made

  • Model: NovaSearch/stella_en_400M_v5 at revision ffeb2b7ee715c226d4ffe5e4619f7dbb48624c20, the frozen document tower of Constella.
  • Documents: BEIR corpus at the pinned revisions in the source repository, text as title + " " + text, no prompt, max length 512 tokens, fp32 compute, stored as float16.
  • NQ was encoded on an NVIDIA RTX 3080 (CUDA). A parity check re-encoded 256 seeded passages on Apple MPS: minimum cosine 0.99994.
  • FiQA passed the source repository's reproduction gate: exact search over these vectors reproduces the published per-query nDCG@10 of Stella, Zero and Nano (mean within 5e-4, at least 98% of queries within 1e-6).

Code and receipts: github.com/Dylancouzon/asymmetric-dual-encoders (m15src/talk_package_vectors.py, m15src/talk_edge.py, results/m15_talk_nq_parity.json).

License and attribution

These vectors are derived from text under Creative Commons Attribution-ShareAlike licences, so they are released under CC BY-SA 4.0.

  • Natural Questions (Kwiatkowski et al., 2019), CC BY-SA 3.0, from Wikipedia, via BEIR (Thakur et al., 2021).
  • FiQA-2018 (Maia et al., 2018), from StackExchange and Reddit financial posts, via BEIR (Thakur et al., 2021).
  • The Stella model is released by NovaSearch under its own licence; see its model card.
Downloads last month
62