khoj/tests
Debanjum Singh Solanky b1e64fd4a8 Improve search speed. Only apply filter if filter keywords in query
- Formalize filters into class with can_filter() and filter() methods

- Use can_filter() method to decide whether to apply filter and
  create deep copies of entries and embeddings for it

- Improve search speed for queries with no filters
  as deep copying entries, embeddings takes the most time
  after cross-encodes scoring when calling the /search API

  Earlier we would create deep copies of entries, embeddings
  even if the query did not contain any filter keywords
2022-07-26 22:47:26 +04:00
..
data Create test markdown files. Use them in sample config, docker-compose 2022-07-21 22:09:44 +04:00
__init__.py Move tests out to project root. Use absolute import in project 2021-09-30 04:12:14 -07:00
conftest.py Merge Symmetric, Asymmetric Search Types into a single Text Search Type 2022-07-21 21:19:52 +04:00
test_asymmetric_search.py Merge Symmetric, Asymmetric Search Types into a single Text Search Type 2022-07-21 21:19:52 +04: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 Update unit tests to use the new BaseModel types 2021-12-05 09:31:39 -05:00
test_client.py Rename notes search type to org search, now that markdown notes supported 2022-07-21 22:09:44 +04:00
test_date_filter.py Improve search speed. Only apply filter if filter keywords in query 2022-07-26 22:47:26 +04:00
test_helpers.py Move tests out to project root. Use absolute import in project 2021-09-30 04:12:14 -07:00
test_image_search.py Fix tests to handle updated response types by API 2022-07-20 03:01:56 +04:00
test_orgnode.py Parse Logbook Entries in the OrgNode parser for Org-Mode. Update tests 2022-07-21 00:15:30 +04:00