diff --git a/clients/ts-sdk/openapi.json b/clients/ts-sdk/openapi.json index c817590756..b2ebbbe17d 100644 --- a/clients/ts-sdk/openapi.json +++ b/clients/ts-sdk/openapi.json @@ -9219,6 +9219,11 @@ "description": "The base URL for the reranker API", "nullable": true }, + "RERANKER_MODEL_NAME": { + "type": "string", + "description": "The model name for the Reranker API", + "nullable": true + }, "SEMANTIC_ENABLED": { "type": "boolean", "description": "Whether to use semantic search", diff --git a/clients/ts-sdk/src/types.gen.ts b/clients/ts-sdk/src/types.gen.ts index 92f972c93b..fa279aa3cc 100644 --- a/clients/ts-sdk/src/types.gen.ts +++ b/clients/ts-sdk/src/types.gen.ts @@ -936,6 +936,10 @@ export type DatasetConfigurationDTO = { * The base URL for the reranker API */ RERANKER_BASE_URL?: (string) | null; + /** + * The model name for the Reranker API + */ + RERANKER_MODEL_NAME?: (string) | null; /** * Whether to use semantic search */ diff --git a/frontends/dashboard/src/components/ApiKeys.tsx b/frontends/dashboard/src/components/ApiKeys.tsx index 90ac9b21b3..d90019a78c 100644 --- a/frontends/dashboard/src/components/ApiKeys.tsx +++ b/frontends/dashboard/src/components/ApiKeys.tsx @@ -204,7 +204,7 @@ export const ApiKeys = () => { ]; return createSolidTable({ columns: columns, - data: userApiKeysQuery.data as ApiKeyRespBody[], + data: userApiKeysQuery.data, getCoreRowModel: getCoreRowModel(), }); }); diff --git a/frontends/dashboard/src/components/NewDatasetModal.tsx b/frontends/dashboard/src/components/NewDatasetModal.tsx index d8a3e5916f..7c81081445 100644 --- a/frontends/dashboard/src/components/NewDatasetModal.tsx +++ b/frontends/dashboard/src/components/NewDatasetModal.tsx @@ -20,6 +20,7 @@ import { useNavigate } from "@solidjs/router"; import { availableDistanceMetrics, availableEmbeddingModels, + availableRerankerModels, } from "shared/types"; import { createToast } from "./ShowToasts"; import { createNewDataset } from "../api/createDataset"; @@ -337,6 +338,54 @@ export const NewDatasetModal = (props: NewDatasetModalProps) => { +
+ + +
+
+
+ + } + tooltipText="Reranker Model for re-ranking search results." + /> +
+ +
+
+
+ + } + tooltipText="Sets the API key for the Cohere reranker if you choose to use it." + /> +
+ + props.setServerConfig((prev) => { + return { + ...prev, + RERANKER_API_KEY: e.currentTarget.value, + }; + }) + } + /> +
+