Skip to main content
Version: Latest

GenSearchInput

description

Input parameters for GenSearch operation.

input GenSearchInput {
prompt: String
filters: SearchFilter
documents: [GenSearchDocumentInput!]
useWebSearch: Boolean
useXSearch: Boolean
conversationId: String
}

Fields​

GenSearchInput.prompt ● String scalar graph-ql-types​

Input text or question to generate a response for.

GenSearchInput.filters ● SearchFilter input graph-ql-types​

Optional filters to refine the documents searched. Supports filtering by companies, date range, document types, industries, countries, and more. Cannot be used with 'documents'.

GenSearchInput.documents ● [GenSearchDocumentInput!] list input graph-ql-types​

Specific document IDs to use as context for answering the question. Cannot be used with 'filters'.

Enable web search for answer generation. Can be combined with 'filters'. Cannot be used with 'documents'.

GenSearchInput.useXSearch ● Boolean scalar graph-ql-types​

Enable X (formerly Twitter) social signal search for answer generation. Can be combined with 'filters'. Mirrors the useWebSearch pattern.

GenSearchInput.conversationId ● String scalar graph-ql-types​

Optional conversation ID to link this question as a follow-up within an existing conversation thread.

Member Of​

genSearch.auto mutation ● genSearch.deepResearch mutation ● genSearch.fast mutation ● genSearch.thinkLonger mutation ● genSearchAuto subscription ● genSearchFast subscription ● GenSearchMutation__auto mutation ● GenSearchMutation__deepResearch mutation ● GenSearchMutation__fast mutation ● GenSearchMutation__thinkLonger mutation ● genSearchThinkLonger subscription