Skip to content

Support date filtering in search_context and semantic_search_context#24

Merged
alex-feel merged 4 commits into
mainfrom
alex-feel-dev
Nov 29, 2025
Merged

Support date filtering in search_context and semantic_search_context#24
alex-feel merged 4 commits into
mainfrom
alex-feel-dev

Conversation

@alex-feel

Copy link
Copy Markdown
Owner

Add start_date and end_date parameters to filter context entries by creation timestamp. Implements ISO 8601 date parsing with SQLite datetime() normalization and PostgreSQL asyncpg datetime conversion. Date-only end_date values expand to T23:59:59.999999 for intuitive "entire day" behavior. Naive datetime interpreted as UTC per industry standard.

…ntext

Add start_date and end_date parameters to filter context entries by creation timestamp. Implements ISO 8601 date parsing with SQLite datetime() normalization and PostgreSQL asyncpg datetime conversion. Date-only end_date values expand to T23:59:59.999999 for intuitive "entire day" behavior. Naive datetime interpreted as UTC per industry standard.
…_context

Add comprehensive tests for start_date and end_date parameters including date validation, range validation, format handling (date-only, datetime, timezone offsets), SQLite integration, PostgreSQL datetime conversion, and semantic search date filtering. Includes real server integration tests in test_real_server.py.
@github-actions

github-actions Bot commented Nov 29, 2025

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  app
  server.py 878-880, 1845-1846, 1858-1859
  app/repositories
  base.py 152-153, 163-168
  context_repository.py 363-378
  embedding_repository.py 227-242
Project Total  

This report was generated by python-coverage-comment-action

Document start_date and end_date parameters for search_context and semantic_search_context tools. Add ISO 8601 format examples, date range filtering usage, and update related guides.
@alex-feel alex-feel merged commit a174214 into main Nov 29, 2025
6 checks passed
@alex-feel alex-feel deleted the alex-feel-dev branch November 29, 2025 21:27
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.

1 participant