Github
  • Preparing search index...
  • The search index is not available
Trieve Typescript SDK - v0.0.97
  • Trieve Typescript SDK
  • Chunk Methods
  • suggestedQueries

Function suggestedQueries

  • suggestedQueries(props, signal?): Promise<SuggestedQueriesResponse>
  • This function will generate 3 suggested queries based off a hybrid search using RAG with the query provided in the request body and return them as a JSON object.

    Example:

    const data = await trieve.suggestedQueries({
    query: "Some search query",
    });

    Parameters

    • props: SuggestedQueriesReqPayload
    • Optionalsignal: AbortSignal

    Returns Promise<SuggestedQueriesResponse>

    • Defined in clients/ts-sdk/src/functions/chunks/index.ts:340

Settings

Member Visibility
Github
Trieve Typescript SDK - v0.0.97
  • Loading...

Generated using TypeDoc

Please reach out if you'd like assistance; we are responsive! Contact humans@trieve.ai or see trieve.ai for links to Discord and Matrix.