Skip to content

Commit 27611b8

Browse files
committed
change imports
1 parent de1f104 commit 27611b8

12 files changed

+25
-15
lines changed

tests/test_async_loader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
import pytest
2020
import pytest_asyncio
2121
from langchain_core.documents import Document
22+
from langchain_postgres import Column
2223
from sqlalchemy import text
2324

24-
from langchain_google_alloydb_pg import AlloyDBEngine, Column
25+
from langchain_google_alloydb_pg import AlloyDBEngine
2526
from langchain_google_alloydb_pg.async_loader import (
2627
AsyncAlloyDBDocumentSaver,
2728
AsyncAlloyDBLoader,

tests/test_async_vectorstore.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121
import pytest_asyncio
2222
from langchain_core.documents import Document
2323
from langchain_core.embeddings import DeterministicFakeEmbedding
24+
from langchain_postgres import Column
2425
from PIL import Image
2526
from sqlalchemy import text
2627
from sqlalchemy.engine.row import RowMapping
2728

28-
from langchain_google_alloydb_pg import AlloyDBEngine, Column
29+
from langchain_google_alloydb_pg import AlloyDBEngine
2930
from langchain_google_alloydb_pg.async_vectorstore import AsyncAlloyDBVectorStore
3031

3132
DEFAULT_TABLE = "test_table" + str(uuid.uuid4())

tests/test_async_vectorstore_from_methods.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
import pytest_asyncio
2121
from langchain_core.documents import Document
2222
from langchain_core.embeddings import DeterministicFakeEmbedding
23+
from langchain_postgres import Column
2324
from sqlalchemy import text
2425
from sqlalchemy.engine.row import RowMapping
2526

26-
from langchain_google_alloydb_pg import AlloyDBEngine, Column
27+
from langchain_google_alloydb_pg import AlloyDBEngine
2728
from langchain_google_alloydb_pg.async_vectorstore import AsyncAlloyDBVectorStore
2829

2930
DEFAULT_TABLE = "test_table" + str(uuid.uuid4()).replace("-", "_")

tests/test_async_vectorstore_search.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import pytest_asyncio
2020
from langchain_core.documents import Document
2121
from langchain_core.embeddings import DeterministicFakeEmbedding
22+
from langchain_postgres import Column
2223
from langchain_postgres.v2.indexes import (
2324
DistanceStrategy,
2425
HNSWQueryOptions,
@@ -27,7 +28,7 @@
2728
from PIL import Image
2829
from sqlalchemy import text
2930

30-
from langchain_google_alloydb_pg import AlloyDBEngine, Column
31+
from langchain_google_alloydb_pg import AlloyDBEngine
3132
from langchain_google_alloydb_pg.async_vectorstore import AsyncAlloyDBVectorStore
3233
from langchain_google_alloydb_pg.indexes import (
3334
ScaNNQueryOptions,

tests/test_engine.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@
2121
import pytest_asyncio
2222
from google.cloud.alloydb.connector import AsyncConnector, IPTypes
2323
from langchain_core.embeddings import DeterministicFakeEmbedding
24+
from langchain_postgres import Column
2425
from sqlalchemy import VARCHAR, text
2526
from sqlalchemy.engine import URL
2627
from sqlalchemy.engine.row import RowMapping
2728
from sqlalchemy.ext.asyncio import create_async_engine
2829
from sqlalchemy.pool import NullPool
2930

30-
from langchain_google_alloydb_pg import AlloyDBEngine, Column
31+
from langchain_google_alloydb_pg import AlloyDBEngine
3132

3233
DEFAULT_TABLE = "test_table" + str(uuid.uuid4()).replace("-", "_")
3334
CUSTOM_TABLE = "test_table_custom" + str(uuid.uuid4()).replace("-", "_")

tests/test_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
import pytest
2020
import pytest_asyncio
2121
from langchain_core.documents import Document
22+
from langchain_postgres import Column
2223
from sqlalchemy import text
2324

2425
from langchain_google_alloydb_pg import (
2526
AlloyDBDocumentSaver,
2627
AlloyDBEngine,
2728
AlloyDBLoader,
28-
Column,
2929
)
3030

3131
project_id = os.environ["PROJECT_ID"]

tests/test_standard_test_suite.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717

1818
import pytest
1919
import pytest_asyncio
20+
from langchain_postgres import Column
2021
from langchain_tests.integration_tests import VectorStoreIntegrationTests
2122
from langchain_tests.integration_tests.vectorstores import EMBEDDING_SIZE
2223
from sqlalchemy import text
2324

24-
from langchain_google_alloydb_pg import AlloyDBEngine, AlloyDBVectorStore, Column
25+
from langchain_google_alloydb_pg import AlloyDBEngine, AlloyDBVectorStore
2526

2627
DEFAULT_TABLE = "test_table_standard_test_suite" + str(uuid.uuid4())
2728
DEFAULT_TABLE_SYNC = "test_table_sync_standard_test_suite" + str(uuid.uuid4())

tests/test_vectorstore.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@
2424
from google.cloud.alloydb.connector import AsyncConnector, IPTypes
2525
from langchain_core.documents import Document
2626
from langchain_core.embeddings import DeterministicFakeEmbedding
27+
from langchain_postgres import Column
2728
from PIL import Image
2829
from sqlalchemy import text
2930
from sqlalchemy.engine.row import RowMapping
3031
from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine
3132

32-
from langchain_google_alloydb_pg import AlloyDBEngine, AlloyDBVectorStore, Column
33+
from langchain_google_alloydb_pg import AlloyDBEngine, AlloyDBVectorStore
3334

3435
DEFAULT_TABLE = "test_table" + str(uuid.uuid4())
3536
DEFAULT_TABLE_SYNC = "test_table_sync" + str(uuid.uuid4())

tests/test_vectorstore_embeddings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
import pytest
1919
import pytest_asyncio
2020
from langchain_core.documents import Document
21+
from langchain_postgres import Column
22+
from langchain_postgres.v2.indexes import DistanceStrategy, HNSWQueryOptions
2123
from sqlalchemy import text
2224

2325
from langchain_google_alloydb_pg import (
2426
AlloyDBEmbeddings,
2527
AlloyDBEngine,
2628
AlloyDBModelManager,
2729
AlloyDBVectorStore,
28-
Column,
2930
)
30-
from langchain_google_alloydb_pg.indexes import DistanceStrategy, HNSWQueryOptions
3131

3232
DEFAULT_TABLE = "test_table" + str(uuid.uuid4()).replace("-", "_")
3333
DEFAULT_TABLE_SYNC = "test_table" + str(uuid.uuid4()).replace("-", "_")

tests/test_vectorstore_from_methods.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020
import pytest_asyncio
2121
from langchain_core.documents import Document
2222
from langchain_core.embeddings import DeterministicFakeEmbedding
23+
from langchain_postgres import Column
2324
from sqlalchemy import VARCHAR, text
2425
from sqlalchemy.engine.row import RowMapping
2526
from sqlalchemy.ext.asyncio import create_async_engine
2627

27-
from langchain_google_alloydb_pg import AlloyDBEngine, AlloyDBVectorStore, Column
28+
from langchain_google_alloydb_pg import AlloyDBEngine, AlloyDBVectorStore
2829

2930
DEFAULT_TABLE = "test_table" + str(uuid.uuid4()).replace("-", "_")
3031
DEFAULT_TABLE_SYNC = "test_table_sync" + str(uuid.uuid4()).replace("-", "_")

0 commit comments

Comments
 (0)