From 71d26ca4d1d241743a85ec233fa65cd6989ef987 Mon Sep 17 00:00:00 2001 From: Steve Kim Date: Wed, 25 Dec 2024 18:51:09 +0900 Subject: [PATCH] Update VectorStoreTabs.js - Fix Typo Correct "embedding" to "embeddings" in PGVector initialization example - Problem There is a typo in the example code for initializing the PGVector class. The current parameter "embedding" is incorrect as the class expects "embeddings". - Correction The parameter should be updated to embeddings for correct usage. The corrected code snippet is: ``` vector_store = PGVector( embeddings=embeddings, collection_name="my_docs", connection="postgresql+psycopg://...", ) ``` --- docs/src/theme/VectorStoreTabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/theme/VectorStoreTabs.js b/docs/src/theme/VectorStoreTabs.js index d7a2042c96075..2b7d6535e0132 100644 --- a/docs/src/theme/VectorStoreTabs.js +++ b/docs/src/theme/VectorStoreTabs.js @@ -56,7 +56,7 @@ export default function VectorStoreTabs(props) { { value: "PGVector", label: "PGVector", - text: `from langchain_postgres import PGVector\n${useFakeEmbeddings ? fakeEmbeddingsString : ""}\n${vectorStoreVarName} = PGVector(\n embedding=embeddings,\n collection_name="my_docs",\n connection="postgresql+psycopg://...",\n)`, + text: `from langchain_postgres import PGVector\n${useFakeEmbeddings ? fakeEmbeddingsString : ""}\n${vectorStoreVarName} = PGVector(\n embeddings=embeddings,\n collection_name="my_docs",\n connection="postgresql+psycopg://...",\n)`, packageName: "langchain-postgres", default: false, },