mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-24 07:55:07 +01:00
76562f4250
* Initial version - setup a file-push architecture for generating embeddings with Khoj * Use state.host and state.port for configuring the URL for the indexer * Fix parsing of PDF files * Read markdown files from streamed data and update unit tests * On application startup, load in embeddings from configurations files, rather than regenerating the corpus based on file system * Init: refactor indexer/batch endpoint to support a generic file ingestion format * Add features to better support indexing from files sent by the desktop client * Initial commit with Electron application - Adds electron app * Add import for pymupdf, remove import for pypdf * Allow user to configure khoj host URL * Remove search type configuration from index.html * Use v1 path for current indexer routes
17 lines
512 B
Python
17 lines
512 B
Python
# External Packages
|
|
import pytest
|
|
|
|
# Internal Packages
|
|
from khoj.utils.rawconfig import TextContentConfig, ImageContentConfig
|
|
|
|
|
|
# Test
|
|
# ----------------------------------------------------------------------------------------------------
|
|
def test_input_filter_or_directories_required_in_image_content_config():
|
|
# Act
|
|
with pytest.raises(ValueError):
|
|
ImageContentConfig(
|
|
input_directories=None,
|
|
input_filter=None,
|
|
embeddings_file="note_embeddings.pt",
|
|
)
|