Skip to content

Commit

Permalink
chore: remove custom id column requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwarajanand committed Dec 23, 2024
1 parent 4daacc5 commit ab89d03
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions samples/migrations/migrate_pinecone_vectorstore_to_alloydb.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,9 @@ async def main(
# [START pinecone_alloydb_migration_get_alloydb_vectorstore]
from alloydb_snippets import aget_vector_store, get_embeddings_service

from langchain_google_alloydb_pg import Column

# Note that the vector size and id_column name/type are configurable.
# We need to customize the vector store table because the sample data has
# 1024 vectors and integer like id values (not UUIDs).
await alloydb_engine.ainit_vectorstore_table(
table_name=alloydb_table,
vector_size=pinecone_vector_size,
id_column=Column("langchain_id", "text", nullable=False),
overwrite_existing=True,
)

Expand Down

0 comments on commit ab89d03

Please sign in to comment.