Skip to content

Local (subtree) scoping for suggest and AI search (#79) - #103

Merged
reekitconcept merged 1 commit into
feature-ai-ragfrom
kid/local-scope
Jul 30, 2026
Merged

Local (subtree) scoping for suggest and AI search (#79)#103
reekitconcept merged 1 commit into
feature-ai-ragfrom
kid/local-scope

Conversation

@reekitconcept

Copy link
Copy Markdown
Member

Revival of #100 (closed yesterday to keep local/global out of that delivery), rebased onto the current feature-ai-rag. Consumed by the kitconcept.intranet workspace search dialog (internal ticket #426), where the Workspace chip acts as the local/global scope switch.

  • @solr-suggest accepts an optional path_prefix and filters with the same path_parents pattern the RAG retrieval already uses — integration test included (TestSuggestPathPrefix).
  • ragSearch and solrSearchSuggestions actions take an optional pathPrefix argument (backward compatible).
  • On the search page, a local search (local=true) passes the path prefix to the AI retrieval too, so the answer's grounding matches the classic result list (@rag-search already supported path_prefix).
  • searchPathPrefix(): an explicit path_prefix URL param wins over the getPathPrefix heuristic, which treats every single-segment path as a language root and silently dropped the prefix for top-level workspaces.

Without pathPrefix/path_prefix nothing changes for existing consumers.

The intranet-side consumer (dialog scope switch + Cypress/unit tests) follows in a kitconcept.intranet PR that depends on this merge + a pin bump.

Prepares workspace-local search end to end:

- @solr-suggest accepts an optional path_prefix and filters with the
  same path_parents pattern the RAG retrieval already uses; with it the
  livesearch dropdown can honor a workspace scope (integration test
  included).
- ragSearch and solrSearchSuggestions actions take an optional
  pathPrefix argument (backward compatible).
- On the search page, a local search (local=true) now passes the path
  prefix to the AI retrieval too, so the answer's grounding matches the
  classic result list. The @Rag-Search backend already supported
  path_prefix.

Frontend-only consumers decide the scope; without pathPrefix nothing
changes.
@reekitconcept
reekitconcept merged commit 9841b2e into feature-ai-rag Jul 30, 2026
17 checks passed
@reekitconcept
reekitconcept deleted the kid/local-scope branch July 30, 2026 07:49
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