Class GetCollectionOptions
Command options specific to collections.
public class GetCollectionOptions : DatabaseCommandOptions
- Inheritance
-
GetCollectionOptions
- Derived
- Inherited Members
Properties
AWSEmbeddingAPIKey
When specified, the client will send the authentication parameters required for AWS embedding providers (Access ID and Secret ID) with each collection request, via HTTP headers.
public AWSEmbeddingAPIKeyDescriptor AWSEmbeddingAPIKey { get; set; }
Property Value
Examples
// When creating a collection:
var collection = await Database.CreateCollectionAsync<MyDocumentClass>(
new CreateCollectionOptions() {
AWSEmbeddingAPIKey = new () { EmbeddingAccessId = "..." , EmbeddingSecretId = "..." }
}
);
// Similarly for getting a collection:
var collection = Database.GetCollection<MyDocumentClass>(
new GetCollectionOptions() {
AWSEmbeddingAPIKey = new () { EmbeddingAccessId = "..." , EmbeddingSecretId = "..." }
}
);
EmbeddingAPIKey
When specified, the client will send the X-Embedding-Api-Key header with the specified key to any underlying HTTP request that requires vectorize authentication.
public string EmbeddingAPIKey { get; set; }
Property Value
RerankingAPIKey
When specified, the client will send the Reranking-Api-Key header with the specified key to any underlying HTTP request that requires reranker authentication.
public string RerankingAPIKey { get; set; }