khoj/tests
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
..
data Rename org-mode test data directory to more specific org/ from notes/ 2022-08-04 22:29:57 +03:00
__init__.py Move tests out to project root. Use absolute import in project 2021-09-30 04:12:14 -07:00
conftest.py Setup Filters when configuring Text Search for each Search Type 2022-09-05 15:21:40 +03:00
test_chatbot.py Fix the user intent extraction prompt for GPT. Clean up chatbot test 2022-01-12 10:36:01 -05:00
test_cli.py Fix CLI tests as config_file path made absolute during CLI parsing 2022-08-12 01:47:52 +03:00
test_client.py Setup Filters when configuring Text Search for each Search Type 2022-09-05 15:21:40 +03:00
test_date_filter.py Make search filters return entry ids satisfying filter 2022-09-05 15:21:40 +03:00
test_file_filter.py Make search filters return entry ids satisfying filter 2022-09-05 15:21:40 +03:00
test_helpers.py Create LRU helper class for caching 2022-09-04 16:31:46 +03:00
test_image_search.py Re-enable tests for image search 2022-08-20 14:44:53 +03:00
test_org_to_jsonl.py Add file of each entry to entry dict in org_to_jsonl converter 2022-09-05 15:21:40 +03:00
test_orgnode.py Test Task State Extraction in OrgNode Tests 2022-08-10 13:48:18 +03:00
test_text_search.py Setup Filters when configuring Text Search for each Search Type 2022-09-05 15:21:40 +03:00
test_word_filter.py Make search filters return entry ids satisfying filter 2022-09-05 15:21:40 +03:00