khoj/src
Debanjum Singh Solanky 965bd052f1 Make search filters return entry ids satisfying filter
- Filter entries, embeddings by ids satisfying all filters in query
  func, after each filter has returned entry ids satisfying their
  individual acceptance criteria

- Previously each filter would return a filtered list of entries.
  Each filter would be applied on entries filtered by previous filters.
  This made the filtering order dependent

- Benefits
  - Filters can be applied independent of their order of execution
  - Precomputed indexes for each filter is not in danger of running
    into index out of bound errors, as filters run on original entries
    instead of on entries filtered by filters that have run before it
  - Extract entries satisfying filter only once instead of doing
    this for each filter

- Costs
  - Each filter has to process all entries even if previous filters
    may have already marked them as non-satisfactory
2022-09-05 15:21:40 +03:00
..
interface Update URL QueryParam when Type set in Dropdown on Web Interface 2022-08-28 12:22:22 +03:00
processor Add file of each entry to entry dict in org_to_jsonl converter 2022-09-05 15:21:40 +03:00
search_filter Make search filters return entry ids satisfying filter 2022-09-05 15:21:40 +03:00
search_type Make search filters return entry ids satisfying filter 2022-09-05 15:21:40 +03:00
utils Create Abstract Base Class for Filters. Make Word, Date Filter Child of BaseFilter 2022-09-04 18:48:16 +03:00
__init__.py Move application files under src directory. Update Readmes 2021-08-17 04:11:03 -07:00
configure.py Setup Filters when configuring Text Search for each Search Type 2022-09-05 15:21:40 +03:00
main.py Use python standard logging framework for app logs 2022-09-03 14:43:32 +03:00
router.py Rename explicit filter to word filter to be more specific 2022-09-04 17:18:47 +03:00