diff --git a/examples/postgres_source/main.py b/examples/postgres_source/main.py index 45bfa5e0..deef6172 100644 --- a/examples/postgres_source/main.py +++ b/examples/postgres_source/main.py @@ -63,8 +63,8 @@ def postgres_product_indexing_flow( ), # Optional. ordinal_column="modified_time", + notification=cocoindex.sources.PostgresNotification(), ), - refresh_interval=datetime.timedelta(seconds=30), ) indexed_product = data_scope.add_collector() diff --git a/examples/postgres_source/pyproject.toml b/examples/postgres_source/pyproject.toml index 5bd7c58b..05132026 100644 --- a/examples/postgres_source/pyproject.toml +++ b/examples/postgres_source/pyproject.toml @@ -4,7 +4,7 @@ version = "0.1.0" description = "Demonstrate how to use Postgres tables as the source for CocoIndex." requires-python = ">=3.11" dependencies = [ - "cocoindex[embeddings]>=0.2.1", + "cocoindex[embeddings]>=0.2.3", "python-dotenv>=1.0.1", "pgvector>=0.4.1", "psycopg[binary,pool]",