Skip to content

Commit

Permalink
docs: fix community pgvector deprecation warning formatting (#27094)
Browse files Browse the repository at this point in the history
**Description**: PR fixes some formatting errors in deprecation message
in the `langchain_community.vectorstores.pgvector` module, where it was
missing spaces between a few words, and one word was misspelled.
**Issue**: n/a
**Dependencies**: n/a

Signed-off-by: mpeveler@timescale.com
Co-authored-by: Erick Friis <erick@langchain.dev>
  • Loading branch information
MasterOdin and efriis authored Oct 15, 2024
1 parent 3fa5ce3 commit c653361
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libs/community/langchain_community/vectorstores/pgvector.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ def _results_to_docs(docs_and_scores: Any) -> List[Document]:
since="0.0.31",
message=(
"This class is pending deprecation and may be removed in a future version. "
"You can swap to using the `PGVector`"
" implementation in `langchain_postgres`. "
"You can swap to using the `PGVector` "
"implementation in `langchain_postgres`. "
"Please read the guidelines in the doc-string of this class "
"to follow prior to migrating as there are some differences "
"between the implementations. "
"See <https://github.com/langchain-ai/langchain-postgres> for details about"
"See <https://github.com/langchain-ai/langchain-postgres> for details about "
"the new implementation."
),
alternative="from langchain_postgres import PGVector;",
Expand Down Expand Up @@ -331,11 +331,11 @@ def __init__(
message=(
"Please use JSONB instead of JSON for metadata. "
"This change will allow for more efficient querying that "
"involves filtering based on metadata."
"involves filtering based on metadata. "
"Please note that filtering operators have been changed "
"when using JSOB metadata to be prefixed with a $ sign "
"when using JSONB metadata to be prefixed with a $ sign "
"to avoid name collisions with columns. "
"If you're using an existing database, you will need to create a"
"If you're using an existing database, you will need to create a "
"db migration for your metadata column to be JSONB and update your "
"queries to use the new operators. "
),
Expand Down

0 comments on commit c653361

Please sign in to comment.