throw new InvalidOperationException($"Failed to add items to collection '{Name}'. DebugInformation: {response.DebugInformation}");
}
// TODO: Search right after adding doesn't return the added items. Fix this later, it's just a temporary solution.
await Task.Delay(TimeSpan.FromMilliseconds(1000), cancellationToken).ConfigureAwait(false);
return response.Items
.Select(i => i.Id)
.ToArray();
https://github.com/tryAGI/LangChain/blob/03110ccdfc74d2a4bdace3575a52b97c15d6f595/src/Databases/OpenSearch/src/OpenSearchVectorCollection.cs#L52