[PR #191] [CLOSED] docs: streamline tutotiral #220

Closed
opened 2026-02-16 05:17:00 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langchain-postgres/pull/191
Author: @eyurtsev
Created: 4/8/2025
Status: Closed

Base: mainHead: eugene/remove_deprecation_for_now


📝 Commits (3)

📊 Changes

4 files changed (+630 additions, -529 deletions)

View changed files

📝 examples/pg_vectorstore.ipynb (+362 -304)
📝 langchain_postgres/vectorstores.py (+0 -7)
📝 poetry.lock (+267 -217)
📝 pyproject.toml (+1 -1)

📄 Description

Some changes:

  1. Remove information about different PGEngine vectorization
  2. Remove add_texts API. Add_documents is the best way to do this and we don't need to show two ways of doing the same stuff.
  3. Replace "best practices" with concrete reasons why

Additional changes:

  1. Would be nice to capture the exception more narrowly for schema creation.
  2. More restructing would be good to merge creation of the table w/ metadata columns with the initial table creation.
from langchain_postgres import Column
from langchain_postgres import PGVectorStore


TABLE_NAME = "my_vectorstore_2"

await pg_engine.ainit_vectorstore_table(
    table_name=TABLE_NAME,
    vector_size=VECTOR_SIZE,
    metadata_columns=[
        Column("location", "TEXT"), 
        Column("topic", "TEXT"), 
    ],
)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langchain-postgres/pull/191 **Author:** [@eyurtsev](https://github.com/eyurtsev) **Created:** 4/8/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `eugene/remove_deprecation_for_now` --- ### 📝 Commits (3) - [`e17729c`](https://github.com/langchain-ai/langchain-postgres/commit/e17729c881f11e78e60e3947ee863ea837810946) x - [`f93368a`](https://github.com/langchain-ai/langchain-postgres/commit/f93368a546b8dac5b12910e88fe9787e9a2074ab) x - [`66d0453`](https://github.com/langchain-ai/langchain-postgres/commit/66d0453666c02d56c3adbd7443ecaa11884d6dab) x ### 📊 Changes **4 files changed** (+630 additions, -529 deletions) <details> <summary>View changed files</summary> 📝 `examples/pg_vectorstore.ipynb` (+362 -304) 📝 `langchain_postgres/vectorstores.py` (+0 -7) 📝 `poetry.lock` (+267 -217) 📝 `pyproject.toml` (+1 -1) </details> ### 📄 Description Some changes: 1. Remove information about different PGEngine vectorization 2. Remove add_texts API. Add_documents is the best way to do this and we don't need to show two ways of doing the same stuff. 3. Replace "best practices" with concrete reasons why Additional changes: 1. Would be nice to capture the exception more narrowly for schema creation. 2. More restructing would be good to merge creation of the table w/ metadata columns with the initial table creation. ```python from langchain_postgres import Column from langchain_postgres import PGVectorStore TABLE_NAME = "my_vectorstore_2" await pg_engine.ainit_vectorstore_table( table_name=TABLE_NAME, vector_size=VECTOR_SIZE, metadata_columns=[ Column("location", "TEXT"), Column("topic", "TEXT"), ], ) ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 05:17:00 -05:00
yindo closed this issue 2026-02-16 05:17:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langchain-postgres#220