Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

424 B
Raw Blame
import { EnterpriseApi } from "./api";

export const searchApi = EnterpriseApi.injectEndpoints({
  endpoints: (builder) => ({
    getSemanticSearchStatus: builder.query<
      { indexed_count: number; total_est: number },
      void
    >({
      query: () => ({
        method: "GET",
        url: "/api/ee/semantic-search/status",
      }),
    }),
  }),
});

export const { useGetSemanticSearchStatusQuery } = searchApi;