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)
51get => _embeddings[index]; 52set => _embeddings[index] = value; 56public int Count => _embeddings.Count; 62public void Add(TEmbedding item) => _embeddings.Add(item); 66public void AddRange(IEnumerable<TEmbedding> items) => _embeddings.AddRange(items); 69public void Clear() => _embeddings.Clear(); 72public bool Contains(TEmbedding item) => _embeddings.Contains(item); 75public void CopyTo(TEmbedding[] array, int arrayIndex) => _embeddings.CopyTo(array, arrayIndex); 78public IEnumerator<TEmbedding> GetEnumerator() => _embeddings.GetEnumerator(); 84public int IndexOf(TEmbedding item) => _embeddings.IndexOf(item); 87public void Insert(int index, TEmbedding item) => _embeddings.Insert(index, item); 90public bool Remove(TEmbedding item) => _embeddings.Remove(item); 93public void RemoveAt(int index) => _embeddings.RemoveAt(index);