Skip to content

docs: streamline tutotiral #191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Conversation

eyurtsev
Copy link
Collaborator

@eyurtsev eyurtsev commented Apr 8, 2025

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"), 
    ],
)

eyurtsev added 3 commits April 7, 2025 23:14
x
x
@eyurtsev
Copy link
Collaborator Author

eyurtsev commented Apr 8, 2025

closed in favor of #193

@eyurtsev eyurtsev closed this Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant