3 writes to _embeddings
Microsoft.Extensions.AI.Abstractions (3)
Embeddings\GeneratedEmbeddings.cs (3)
23
_embeddings
= [];
30
_embeddings
= new List<TEmbedding>(Throw.IfLessThan(capacity, 0));
39
_embeddings
= new List<TEmbedding>(Throw.IfNull(embeddings));
13 references to _embeddings
Microsoft.Extensions.AI.Abstractions (13)
Embeddings\GeneratedEmbeddings.cs (13)
51
get =>
_embeddings
[index];
52
set =>
_embeddings
[index] = value;
56
public int Count =>
_embeddings
.Count;
62
public void Add(TEmbedding item) =>
_embeddings
.Add(item);
66
public void AddRange(IEnumerable<TEmbedding> items) =>
_embeddings
.AddRange(items);
69
public void Clear() =>
_embeddings
.Clear();
72
public bool Contains(TEmbedding item) =>
_embeddings
.Contains(item);
75
public void CopyTo(TEmbedding[] array, int arrayIndex) =>
_embeddings
.CopyTo(array, arrayIndex);
78
public IEnumerator<TEmbedding> GetEnumerator() =>
_embeddings
.GetEnumerator();
84
public int IndexOf(TEmbedding item) =>
_embeddings
.IndexOf(item);
87
public void Insert(int index, TEmbedding item) =>
_embeddings
.Insert(index, item);
90
public bool Remove(TEmbedding item) =>
_embeddings
.Remove(item);
93
public void RemoveAt(int index) =>
_embeddings
.RemoveAt(index);