Skip to content

[waterfall-pr-chain] feat(filter): metadata based filtering. #48

Merged
Intrinsical-AI merged 1 commit intorefactor/test-suitefrom
feat/advanced-metada-filtering
Mar 14, 2026
Merged

[waterfall-pr-chain] feat(filter): metadata based filtering. #48
Intrinsical-AI merged 1 commit intorefactor/test-suitefrom
feat/advanced-metada-filtering

Conversation

@Intrinsical-AI
Copy link
Owner

…etadata. plus legacy fields. Updated Elastic/OpenSearch + Solr to exact resolve filtering

…etadata.<key> plus legacy fields. Updated Elastic/OpenSearch + Solr to exact resolve filtering
@Intrinsical-AI Intrinsical-AI merged commit 7842141 into refactor/test-suite Mar 14, 2026
Intrinsical-AI added a commit that referenced this pull request Mar 14, 2026
…l endpoints (#47)

* refactor(test-suite): update, expand, polish. Better conceptual splitting, polished fixtures/conftests. Added tests for critical endpoints

* [waterfall-pr-chain] feat(filter): metadata based filtering.  (#48)

feat(filter): metadata based filtering. Expander contract to accept metadata.<key> plus legacy fields. Updated Elastic/OpenSearch + Solr to exact resolve filtering
@Intrinsical-AI Intrinsical-AI deleted the feat/advanced-metada-filtering branch March 14, 2026 22:43
Intrinsical-AI added a commit that referenced this pull request Mar 14, 2026
…ync#44 (#45)

* feat(rag): add elasticsearch persistence backend

* feat(rag): wire elasticsearch backend through runtime and api

* test(rag): cover elasticsearch backend wiring and storage semantics

* docs(rag): document elasticsearch backend configuration and behavior

* feat(persistence): add scope and snapshot_id columns to document stores

Add nullable scope and snapshot_id fields to the SQL Document table and
Elasticsearch index mappings, enabling external producers to tag documents
with an origin scope and version snapshot.

* feat(domain): promote scope and snapshot_id to first-class mutation fields

Extend UpsertDocBuilderPort, MutationUpsertInput, and normalization/serialization
to carry scope and snapshot_id. Add CanonicalImportSummary result type for
reporting insert/update/delete statistics after a canonical import.

* feat(use-cases): pass scope and snapshot_id through atomic and saga executors

Wire the new fields from MutationUpsertInput into the upsert builder calls
in both the atomic and saga mutation execution paths.

* feat(persistence): persist scope/snapshot_id and implement list_external_ids_by_scope()

Update SQL and Elasticsearch repositories to read/write scope and snapshot_id
in upsert, change detection, and domain mapping. Add list_external_ids_by_scope()
to both stores to support stale-doc deletion in canonical imports.

* feat(http): add POST /api/docs/import-canonical endpoint

Introduce CanonicalImportRequest/Response schemas with scope, snapshot_id,
replace_scope flag, and duplicate external_id validation. Add the endpoint
behind the multi-store write lock. Extend existing mutate endpoint schemas
to accept scope/snapshot_id on individual upsert items.

* feat(cli): add rag-import-canonical command for declarative scope sync

Implement execute_import_canonical_sync() use case: batched upsert (256 docs)
with optional replace_scope hard-deletion of stale documents not present in
the current snapshot. Wire as rag-import-canonical CLI entry point and register
in the CLI group.

* docs: add canonical import examples to README and USAGE guide

Document the new import-canonical HTTP endpoint and CLI command with curl
and CLI invocation examples. Note scope/snapshot synchronization semantics
and replace_scope behavior.

* (mutate): commit pending file to last batch - missing

* fix(lint-format): formatted files

* feat(retrieval): add structured retrieval requests and dual-mode planning

* feat(search): add remote search backends for opensearch and solr

* feat(api): expose retrieval filters and dual mode through HTTP and settings

* chore(quality): fix mypy target and vector index fallback

* refactor(test-suite): update, expand, polish. Added tests for critical endpoints (#47)

* refactor(test-suite): update, expand, polish. Better conceptual splitting, polished fixtures/conftests. Added tests for critical endpoints

* [waterfall-pr-chain] feat(filter): metadata based filtering.  (#48)

feat(filter): metadata based filtering. Expander contract to accept metadata.<key> plus legacy fields. Updated Elastic/OpenSearch + Solr to exact resolve filtering
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