Skip to content

Commit

Permalink
Fix persona document sets
Browse files Browse the repository at this point in the history
  • Loading branch information
Weves committed Dec 20, 2023
1 parent 7dd70ca commit fab767d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/danswer/search/request_preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ def retrieval_preprocessing(
"""

preset_filters = retrieval_details.filters or BaseFilters()
if persona and persona.document_sets and preset_filters.document_set is None:
preset_filters.document_set = [
document_set.name for document_set in persona.document_sets
]

time_filter = preset_filters.time_cutoff
source_filter = preset_filters.source_type
Expand Down

1 comment on commit fab767d

@vercel
Copy link

@vercel vercel bot commented on fab767d Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.