• Function that provides the primary search functionality for the API. It can be used to search for chunks by semantic similarity, full-text similarity, or a combination of both. Results’ chunk_html values will be modified with tags for sub-sentence highlighting.

    Example:

    const data = await trieve.search({
    page: 1,
    page_size: 10,
    query: "Some search query",
    });

    Parameters

    Returns Promise<SearchResponseBody>