mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 09:25:06 +01:00
ecc6fbfeb2
### Overview - Add ability to push data to index from the Emacs, Obsidian client - Switch to standard mechanism of syncing files via HTTP multi-part/form. Previously we were streaming the data as JSON - Benefits of new mechanism - No manual parsing of files to send or receive on clients or server is required as most have in-built mechanisms to send multi-part/form requests - The whole response is not required to be kept in memory to parse content as JSON. As individual files arrive they're automatically pushed to disk to conserve memory if required - Binary files don't need to be encoded on client and decoded on server ### Code Details ### Major - Use multi-part form to receive files to index on server - Use multi-part form to send files to index on desktop client - Send files to index on server from the khoj.el emacs client - Send content for indexing on server at a regular interval from khoj.el - Send files to index on server from the khoj obsidian client - Update tests to test multi-part/form method of pushing files to index #### Minor - Put indexer API endpoint under /api path segment - Explicitly make GET request to /config/data from khoj.el:khoj-server-configure method - Improve emoji, message on content index updated via logger - Don't call khoj server on khoj.el load, only once khoj invoked explicitly by user - Improve indexing of binary files - Let fs_syncer pass PDF files directly as binary before indexing - Use encoding of each file set in indexer request to read file - Add CORS policy to khoj server. Allow requests from khoj apps, obsidian & localhost - Update indexer API endpoint URL to` index/update` from `indexer/batch` Resolves #471 #243 |
||
---|---|---|
.. | ||
data | ||
__init__.py | ||
conftest.py | ||
test_cli.py | ||
test_client.py | ||
test_conversation_utils.py | ||
test_date_filter.py | ||
test_file_filter.py | ||
test_gpt4all_chat_actors.py | ||
test_gpt4all_chat_director.py | ||
test_helpers.py | ||
test_image_search.py | ||
test_jsonl_to_jsonl.py | ||
test_markdown_to_jsonl.py | ||
test_openai_chat_actors.py | ||
test_openai_chat_director.py | ||
test_org_to_jsonl.py | ||
test_orgnode.py | ||
test_pdf_to_jsonl.py | ||
test_plaintext_to_jsonl.py | ||
test_rawconfig.py | ||
test_text_search.py | ||
test_word_filter.py |