Function that allows you to view the search analytics for a dataset.
Example:
const data = await trieve.getSearchAnalytics({ filter: { date_range: { gt: "2021-01-01 00:00:00.000", gte: "2021-01-01 00:00:00.000", lt: "2021-01-01 00:00:00.000", lte: "2021-01-01 00:00:00.000", }, search_method: "fulltext", search_type: "search", }, granularity: "minute", type: "latency_graph",}); Copy
const data = await trieve.getSearchAnalytics({ filter: { date_range: { gt: "2021-01-01 00:00:00.000", gte: "2021-01-01 00:00:00.000", lt: "2021-01-01 00:00:00.000", lte: "2021-01-01 00:00:00.000", }, search_method: "fulltext", search_type: "search", }, granularity: "minute", type: "latency_graph",});
Optional
Function that allows you to view the search analytics for a dataset.
Example: