Embedding
Wisej.AI.Embeddings.Embedding
Last updated
Wisej.AI.Embeddings.Embedding
Last updated
Namespace: Wisej.AI.Embeddings
Assembly: Wisej.AI (3.5.0.0)
Represents an embedding which contains chunks of data, their associated vectors, and the model used for embedding.
Initializes a new instance of the class with specified chunks, vectors, and model.
chunks
An array of strings representing the data chunks to be embedded.
vectors
A jagged array of floats representing the vectors associated with the chunks.
model
A string representing the model used for embedding.
This constructor initializes the class by setting the provided data chunks, their corresponding vectors, and the embedding model. The chunks parameter is used to input the raw data which will be embedded. The vectors parameter provides the associated vector representations for these chunks. The model specifies the model name used in the embedding process. Here is an example of how to create an instance of the class:
Adds the vectors and chunks from embedding .
embedding
: Gets the chunks of data that were embedded.
: Gets the model name used for embedding.
: Gets the vectors associated with the data chunks.
The instance providing the values to combine.
Returns: .
Creates a deep copy of the current instance.
Returns: . A new instance that is a deep copy of the current instance.