Project Files
src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
export const configSchematics = createConfigSchematics()
.field(
"maxWebLinks",
"numeric",
{
displayName: "Max Web Links",
subtitle: "Max links to extract from web pages",
min: 0,
int: true,
},
40
)
.field(
"rerankerEnabled",
"boolean",
{
displayName: "Enable Reranker",
subtitle: "Enable Cross-Encoder Reranking (Higher quality, slower)",
},
true
)
.field(
"retrievalLimit",
"numeric",
{
displayName: "Retrieval Limit",
subtitle: "Number of chunks to inject into context",
min: 1,
int: true,
},
5
)
.field(
"whisperBinaryPath",
"string",
{
displayName: "Whisper Binary Path",
subtitle: "Path to local whisper-cpp executable ('main' or 'whisper-cpp')",
},
""
)
.build();