khoj/tests
Debanjum Singh Solanky c1128a1ad8 Test Chat Actor Capabilities; ability to answer from notes, chat logs etc
- Chat actors are narrow agents (prompt + ML model)
  Chat actors are different from the Chat director. who orchestrates
  the narrow actor agents to synthesize final response to the user

- Test Chat Actor Capabilities
  1. Answer from retrieved notes
  2. Answer from chat history
  3. Answer general questions
  4. Carry out multi-turn conversation
  5. Say don't know when answer not in provided context
  6. Answers that require current date awareness
  7. Date-aware aggregation across multiple different notes
  8. Ask clarification questions if no unambiguous answer in provided context
     This test is expected to fail as the chat is not capable of doing
     this consistently yet. But having the test allows assessing chat quality

- Use Openai API Key from OPENAI_API_KEY environment variable
- Gitignore .env file, python virtualenv directory
  Put OpenAI API Key in .env file to run chatbot tests via vscode
  The .env file is default location for importing env vars
2023-03-16 09:30:37 -06:00
..
data Read content plugin configs from Khoj config YAML 2023-02-23 23:57:32 -06:00
__init__.py Move tests out to project root. Use absolute import in project 2021-09-30 04:12:14 -07:00
conftest.py Create pytest fixture to configure app with plugin, search types 2023-02-28 20:25:51 -06:00
test_beancount_to_jsonl.py Use Black to format Khoj server code and tests 2023-02-17 11:55:17 -06:00
test_chatbot.py Test Chat Actor Capabilities; ability to answer from notes, chat logs etc 2023-03-16 09:30:37 -06:00
test_cli.py Read content plugin configs from Khoj config YAML 2023-02-23 23:57:32 -06:00
test_client.py Fix configuring search types & /config/types API when no plugin configured 2023-03-01 01:23:37 -06:00
test_date_filter.py Use Black to format Khoj server code and tests 2023-02-17 11:55:17 -06:00
test_file_filter.py Use Black to format Khoj server code and tests 2023-02-17 11:55:17 -06:00
test_helpers.py Use Black to format Khoj server code and tests 2023-02-17 11:55:17 -06:00
test_image_search.py Use Black to format Khoj server code and tests 2023-02-17 11:55:17 -06:00
test_jsonl_to_jsonl.py Add processor to index entries from jsonl files for plugins 2023-02-24 02:54:12 -06:00
test_markdown_to_jsonl.py Use Black to format Khoj server code and tests 2023-02-17 11:55:17 -06:00
test_org_to_jsonl.py Index intro text before headings in org files 2023-03-01 12:11:33 -06:00
test_orgnode.py Index intro text before headings in org files 2023-03-01 12:11:33 -06:00
test_rawconfig.py Test error on missing fields in ContentConfig pulled from Khoj.yml 2023-03-02 15:35:39 -06:00
test_text_search.py Output date filter from cache log at debug level. Remove unused imports 2023-03-02 15:41:32 -06:00
test_word_filter.py Use Black to format Khoj server code and tests 2023-02-17 11:55:17 -06:00