BGEM3InputQueryAndContexts
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:4404
Properties
Section titled “Properties”contexts
Section titled “contexts”contexts:
object[]
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:4412
List of provided contexts. Note that the index in this array is important, as the response will refer to it.
optionaltext:string
One of the provided context content
query?
Section titled “query?”
optionalquery:string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:4408
A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts
truncate_inputs?
Section titled “truncate_inputs?”
optionaltruncate_inputs:boolean
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:4421
When provided with too long context should the model error out or truncate the context to fit?