/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments.js"; import * as core from "../../../../core/index.js"; import * as CortexAI from "../../../index.js"; export declare namespace Embeddings { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; token?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ headers?: Record | undefined>; } } export declare class Embeddings { protected readonly _options: Embeddings.Options; constructor(_options?: Embeddings.Options); /** * @param {CortexAI.BodyInsertRawEmbeddingsEndpointEmbeddingsInsertRawEmbeddingsPost} request * @param {Embeddings.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link CortexAI.BadRequestError} * @throws {@link CortexAI.UnauthorizedError} * @throws {@link CortexAI.ForbiddenError} * @throws {@link CortexAI.NotFoundError} * @throws {@link CortexAI.UnprocessableEntityError} * @throws {@link CortexAI.InternalServerError} * @throws {@link CortexAI.ServiceUnavailableError} * * @example * await client.embeddings.insert({ * tenant_id: "tenant_1234", * embeddings: [{ * source_id: "", * embeddings: [{ * chunk_id: "", * embedding: [1.1] * }, { * chunk_id: "", * embedding: [1.1] * }] * }, { * source_id: "", * embeddings: [{ * chunk_id: "", * embedding: [1.1] * }, { * chunk_id: "", * embedding: [1.1] * }] * }] * }) */ insert(request: CortexAI.BodyInsertRawEmbeddingsEndpointEmbeddingsInsertRawEmbeddingsPost, requestOptions?: Embeddings.RequestOptions): core.HttpResponsePromise; private __insert; /** * @param {CortexAI.BodySearchRawEmbeddingsEndpointEmbeddingsSearchRawEmbeddingsPost} request * @param {Embeddings.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link CortexAI.BadRequestError} * @throws {@link CortexAI.UnauthorizedError} * @throws {@link CortexAI.ForbiddenError} * @throws {@link CortexAI.NotFoundError} * @throws {@link CortexAI.UnprocessableEntityError} * @throws {@link CortexAI.InternalServerError} * @throws {@link CortexAI.ServiceUnavailableError} * * @example * await client.embeddings.search({ * tenant_id: "tenant_1234", * sub_tenant_id: "sub_tenant_4567", * query_embedding: [1.1] * }) */ search(request: CortexAI.BodySearchRawEmbeddingsEndpointEmbeddingsSearchRawEmbeddingsPost, requestOptions?: Embeddings.RequestOptions): core.HttpResponsePromise; private __search; /** * @param {CortexAI.BodyFilterRawEmbeddingsEndpointEmbeddingsFilterRawEmbeddingsPost} request * @param {Embeddings.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link CortexAI.BadRequestError} * @throws {@link CortexAI.UnauthorizedError} * @throws {@link CortexAI.ForbiddenError} * @throws {@link CortexAI.NotFoundError} * @throws {@link CortexAI.UnprocessableEntityError} * @throws {@link CortexAI.InternalServerError} * @throws {@link CortexAI.ServiceUnavailableError} * * @example * await client.embeddings.filter({ * tenant_id: "tenant_1234", * sub_tenant_id: "sub_tenant_4567" * }) */ filter(request: CortexAI.BodyFilterRawEmbeddingsEndpointEmbeddingsFilterRawEmbeddingsPost, requestOptions?: Embeddings.RequestOptions): core.HttpResponsePromise; private __filter; /** * @param {CortexAI.EmbeddingsDeleteRequest} request * @param {Embeddings.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link CortexAI.BadRequestError} * @throws {@link CortexAI.UnauthorizedError} * @throws {@link CortexAI.ForbiddenError} * @throws {@link CortexAI.NotFoundError} * @throws {@link CortexAI.UnprocessableEntityError} * @throws {@link CortexAI.InternalServerError} * @throws {@link CortexAI.ServiceUnavailableError} * * @example * await client.embeddings.delete({ * tenant_id: "tenant_1234" * }) */ delete(request: CortexAI.EmbeddingsDeleteRequest, requestOptions?: Embeddings.RequestOptions): core.HttpResponsePromise; private __delete; protected _getAuthorizationHeader(): Promise; }