Adding documentation for PGVectorStore

This commit is contained in:
Disha Prakash 2025-04-21 17:16:01 +00:00
parent b344f34635
commit 2281713bcb
4 changed files with 766 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -11,6 +11,7 @@ from langchain_milvus import Milvus
from langchain_mongodb import MongoDBAtlasVectorSearch from langchain_mongodb import MongoDBAtlasVectorSearch
from langchain_pinecone import PineconeVectorStore from langchain_pinecone import PineconeVectorStore
from langchain_qdrant import QdrantVectorStore from langchain_qdrant import QdrantVectorStore
from langchain_postgres import PGVectorStore
vectorstore_list = [ vectorstore_list = [
"FAISS", "FAISS",
@ -22,6 +23,7 @@ vectorstore_list = [
] ]
from_partners = [ from_partners = [
("PGVectorStore", PGVectorStore),
("Chroma", Chroma), ("Chroma", Chroma),
("AstraDBVectorStore", AstraDBVectorStore), ("AstraDBVectorStore", AstraDBVectorStore),
("QdrantVectorStore", QdrantVectorStore), ("QdrantVectorStore", QdrantVectorStore),
@ -52,6 +54,17 @@ The table below lists the features for some of our most popular vector stores.
def get_vectorstore_table(): def get_vectorstore_table():
vectorstore_feat_table = { vectorstore_feat_table = {
"PGVectorStore": {
"Delete by ID": True,
"Filtering": True,
"similarity_search_by_vector": True,
"similarity_search_with_score": True,
"asearch": True,
"Passes Standard Tests": True,
"Multi Tenancy": False,
"Local/Cloud": "Local",
"IDs in add Documents": True,
},
"FAISS": { "FAISS": {
"Delete by ID": True, "Delete by ID": True,
"Filtering": True, "Filtering": True,

View File

@ -1156,6 +1156,19 @@ const FEATURE_TABLES = {
local: true, local: true,
idsInAddDocuments: false, idsInAddDocuments: false,
}, },
{
name: "PGVectorStore",
link: "pgvectorstore",
deleteById: true,
filtering: true,
searchByVector: true,
searchWithScore: true,
async: true,
passesStandardTests: true,
multiTenancy: false,
local: true,
idsInAddDocuments: true,
},
{ {
name: "PineconeVectorStore", name: "PineconeVectorStore",
link: "pinecone", link: "pinecone",

View File

@ -60,6 +60,13 @@ export default function VectorStoreTabs(props) {
packageName: "langchain-postgres", packageName: "langchain-postgres",
default: false, default: false,
}, },
{
value: "PGVectorStore",
label: "PGVectorStore",
text: `from langchain_postgres import PGEngine, PGVectorStore\n${useFakeEmbeddings ? fakeEmbeddingsString : ""}\n$engine = PGEngine.from_connection_string(\n url="postgresql+psycopg://..."\n)\n\n${vectorStoreVarName} = PGVectorStore.create_sync(\n engine=pg_engine,\n table_name='test_table',\n embedding_service=embedding\n)`,
packageName: "langchain-postgres",
default: false,
},
{ {
value: "Pinecone", value: "Pinecone",
label: "Pinecone", label: "Pinecone",