segmentby columns of compressed hypertable "}    --------------------------------------------------------------------------------Note how the query only returns results within the specified date range.Method 2: Filter within a provided start date, and a time delta later.# Method 2: Query for vectors between start_dt and a time delta td later# Most relevant vectors between 1 August and 7 days laterdocs_with_score = db.similarity_search_with_score(query, start_date=start_dt, time_delta=td)for doc, score in docs_with_score:    print("-" * 80)    print("Score: ", score)    print("Date: ", doc.metadata["date"])    print(doc.page_content)    print("-" * 80)    --------------------------------------------------------------------------------    Score:  0.18458807468414307    Date:  2023-08-3 14:30:23+0500    {"commit": " 7aeed663b9c0f337b530fd6cad47704a51a9b2ec", "author": "Dmitry Simonenko<dmitry@timescale.com>", "date": "Thu Aug 3 14:30:23 2023 +0300", "change summary": "Feature flags for TimescaleDB features", "change details": "This PR adds several GUCs which allow to enable/disable major timescaledb features:  - enable_hypertable_create - enable_hypertable_compression - enable_cagg_create - enable_policy_create "}    --------------------------------------------------------------------------------    --------------------------------------------------------------------------------    Score:  0.20492422580718994    Date:  2023-08-7 18:31:40+0320    {"commit": " 07762ea4cedefc88497f0d1f8712d1515cdc5b6e", "author": "Sven Klemm<sven@timescale.com>", "date": "Mon Aug 7 18:31:40 2023 +0200", "change summary": "Test timescaledb debian 12 packages in CI", "change details": ""}    --------------------------------------------------------------------------------    --------------------------------------------------------------------------------    Score:  0.21106326580047607    Date:  2023-08-3 14:36:39+0500    {"commit": " 2863daf3df83c63ee36c0cf7b66c522da5b4e127", "author":
This notebook shows how to use the Postgres vector database Timescale Vector. You'll learn how to use TimescaleVector for (1) semantic search, (2) time-based vector search, (3) self-querying, and (4) how to create indexes to speed up queries.
This notebook shows how to use the Postgres vector database Timescale Vector. You'll learn how to use TimescaleVector for (1) semantic search, (2) time-based vector search, (3) self-querying, and (4) how to create indexes to speed up queries. ->: segmentby columns of compressed hypertable "}    --------------------------------------------------------------------------------Note how the query only returns results within the specified date range.Method 2: Filter within a provided start date, and a time delta later.# Method 2: Query for vectors between start_dt and a time delta td later# Most relevant vectors between 1 August and 7 days laterdocs_with_score = db.similarity_search_with_score(query, start_date=start_dt, time_delta=td)for doc, score in docs_with_score:    print("-" * 80)    print("Score: ", score)    print("Date: ", doc.metadata["date"])    print(doc.page_content)    print("-" * 80)    --------------------------------------------------------------------------------    Score:  0.18458807468414307    Date:  2023-08-3 14:30:23+0500    {"commit": " 7aeed663b9c0f337b530fd6cad47704a51a9b2ec", "author": "Dmitry Simonenko<dmitry@timescale.com>", "date": "Thu Aug 3 14:30:23 2023 +0300", "change summary": "Feature flags for TimescaleDB features", "change details": "This PR adds several GUCs which allow to enable/disable major timescaledb features:  - enable_hypertable_create - enable_hypertable_compression - enable_cagg_create - enable_policy_create "}    --------------------------------------------------------------------------------    --------------------------------------------------------------------------------    Score:  0.20492422580718994    Date:  2023-08-7 18:31:40+0320    {"commit": " 07762ea4cedefc88497f0d1f8712d1515cdc5b6e", "author": "Sven Klemm<sven@timescale.com>", "date": "Mon Aug 7 18:31:40 2023 +0200", "change summary": "Test timescaledb debian 12 packages in CI", "change details": ""}    --------------------------------------------------------------------------------    --------------------------------------------------------------------------------    Score:  0.21106326580047607    Date:  2023-08-3 14:36:39+0500    {"commit": " 2863daf3df83c63ee36c0cf7b66c522da5b4e127", "author":