diff --git a/libs/langchain-scripts/src/cli/docs/index.ts b/libs/langchain-scripts/src/cli/docs/index.ts index 989d5ac62842..1271dfe715a9 100644 --- a/libs/langchain-scripts/src/cli/docs/index.ts +++ b/libs/langchain-scripts/src/cli/docs/index.ts @@ -58,7 +58,7 @@ async function main() { isCommunity, }); break; - case 'retriever': + case "retriever": await fillRetrieverIntegrationDocTemplate({ packageName, moduleName, diff --git a/libs/langchain-scripts/src/cli/docs/retrievers.ts b/libs/langchain-scripts/src/cli/docs/retrievers.ts index b22552c691c7..a981b21e627d 100644 --- a/libs/langchain-scripts/src/cli/docs/retrievers.ts +++ b/libs/langchain-scripts/src/cli/docs/retrievers.ts @@ -18,7 +18,6 @@ const INTEGRATIONS_DOCS_PATH = path.resolve( "../../docs/core_docs/docs/integrations/retrievers" ); - type ExtraFields = { hasCloudOffering: boolean; canSelfHost: boolean; @@ -66,7 +65,10 @@ export async function fillRetrieverIntegrationDocTemplate(fields: { const docTemplate = (await fs.promises.readFile(TEMPLATE_PATH, "utf-8")) .replaceAll(PACKAGE_NAME_PLACEHOLDER, fields.packageName) .replaceAll(MODULE_NAME_PLACEHOLDER, fields.moduleName) - .replace(HAS_CLOUD_OFFERING_PLACEHOLDER, extraFields?.hasCloudOffering ? "✅" : "❌") + .replace( + HAS_CLOUD_OFFERING_PLACEHOLDER, + extraFields?.hasCloudOffering ? "✅" : "❌" + ) .replace(CAN_SELF_HOST_PLACEHOLDER, extraFields?.canSelfHost ? "✅" : "❌") .replace(PY_SUPPORT_PLACEHOLDER, extraFields?.pySupport ? "✅" : "❌");