Class Embedding
Represents an embedding output as an asset structure,
designed to be used with Generated<Embedding>.
This wrapper class allows for future extensibility,
supporting not only float[] but also other embedding types as required by different APIs.
Assembly: Glitch9.AIDevKit.dll
Syntax
Properties
|
Edit this page
View Source
Index
Declaration
public int Index { get; set; }
Property Value
|
Edit this page
View Source
Value
The embedding vector, which is a list of floats.
The length of vector depends on the model as listed in the embedding guide.
See the embedding guide
for more information on the length of the vector for each model.
Declaration
public float[] Value { get; set; }
Property Value
Operators
|
Edit this page
View Source
implicit operator float[](Embedding)
Declaration
public static implicit operator float[](Embedding embedding)
Parameters
Returns
|
Edit this page
View Source
implicit operator Embedding(float[])
Declaration
public static implicit operator Embedding(float[] vector)
Parameters
| Type |
Name |
Description |
| float[] |
vector |
|
Returns
Extension Methods