diff --git a/docs/src/theme/EmbeddingTabs.js b/docs/src/theme/EmbeddingTabs.js index 3c4d1d814fd15..7e1012baec109 100644 --- a/docs/src/theme/EmbeddingTabs.js +++ b/docs/src/theme/EmbeddingTabs.js @@ -140,7 +140,7 @@ export default function EmbeddingTabs(props) { { value: "Fake", label: "Fake", - text: `from langchain_core.embeddings import FakeEmbeddings\n\n${embeddingVarName} = FakeEmbeddings(${fakeEmbeddingParamsOrDefault})`, + text: `from langchain_core.embeddings import DeterministicFakeEmbedding\n\n${embeddingVarName} = DeterministicFakeEmbedding(${fakeEmbeddingParamsOrDefault})`, apiKeyName: undefined, packageName: "langchain-core", default: false, @@ -153,9 +153,7 @@ export default function EmbeddingTabs(props) { {tabItems .filter((tabItem) => !tabItem.shouldHide) .map((tabItem) => { - const apiKeyText = tabItem.apiKeyName ? `import getpass - - os.environ["${tabItem.apiKeyName}"] = getpass.getpass()` : ''; + const apiKeyText = tabItem.apiKeyName ? `import getpass\n\nos.environ["${tabItem.apiKeyName}"] = getpass.getpass()` : ''; return (