Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Jan 6, 2025
1 parent 7fdb4ae commit 546024e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def _build_time_filter(

filter_str = f"!({HIDDEN}=true) and " if not include_hidden else ""

# If running in multi-tenant mode, we may want to filter by tenant_id
if filters.tenant_id and MULTI_TENANT:
filter_str += f'({TENANT_ID} contains "{filters.tenant_id}") and '

Expand Down
1 change: 0 additions & 1 deletion backend/onyx/server/query_and_chat/query_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def admin_search(
logger.notice(f"Received admin search query: {query}")
user_acl_filters = build_access_filters_for_user(user, db_session)

# If single-tenant, we do no want to filter by tenant_id (this field does not exist in Vespa)
final_filters = IndexFilters(
source_type=question.filters.source_type,
document_set=question.filters.document_set,
Expand Down

0 comments on commit 546024e

Please sign in to comment.