FakeEmbeddings constructor

FakeEmbeddings({
  1. int size = 10,
  2. bool deterministic = true,
})

Fake embeddings model for testing.

By default, the embeddings are deterministic (the same text will always have the same embedding vector). You can change this behavior by setting deterministic to false.

Implementation

FakeEmbeddings({
  this.size = 10,
  this.deterministic = true,
});