khoj/src/utils
Debanjum Singh Solanky aa22d83172 Create and use a context manager to time code
Use the timer context manager in all places where code was being timed

- Benefits
  - Deduplicate timing code scattered across codebase.
  - Provides single place to manage perf timing code
  - Use consistent timing log patterns
2023-01-09 19:48:16 -03:00
..
__init__.py Move application files under src directory. Update Readmes 2021-08-17 04:11:03 -07:00
cli.py Add --version flag to show installed version of khoj 2022-09-10 16:40:19 +03:00
config.py Only import type hint packages for type checking. Avoids circular imports 2023-01-09 19:47:27 -03:00
constants.py Add index_heading_entries flag to default and sample khoj configs 2022-09-11 17:33:37 +03:00
helpers.py Create and use a context manager to time code 2023-01-09 19:48:16 -03:00
jsonl.py Fix striping empty escape sequences from strings 2022-09-10 23:57:05 +03:00
models.py Create BaseEncoder class. Make OpenAI encoder its child. Use for typing 2023-01-09 19:47:27 -03:00
rawconfig.py Make OpenAI conversation model configurable via khoj.yml 2023-01-09 00:17:51 -03:00
state.py Lock the index before updating it via API or Scheduler 2023-01-01 17:09:36 -03:00
yaml.py Setup `mypy' for static type checking 2022-10-08 17:33:13 +03:00