mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-18 10:43:36 +00:00
docs: Update VectorStoreTabs.js (#28916)
- Title: Fix typo to 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 corrected code snippet is: vector_store = PGVector( embeddings=embeddings, collection_name="my_docs", connection="postgresql+psycopg://...", )
This commit is contained in:
parent
8db2338e96
commit
0fd4a68d34
@ -56,7 +56,7 @@ export default function VectorStoreTabs(props) {
|
|||||||
{
|
{
|
||||||
value: "PGVector",
|
value: "PGVector",
|
||||||
label: "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",
|
packageName: "langchain-postgres",
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user