diff --git a/docker-compose.yml b/docker-compose.yml index 01f0867c..2807b744 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,7 +16,7 @@ services: # points to the files you want to index. # The path of the mounted directory (right hand side), # must match the path prefix in your config file. - - ./tests/data/notes/:/data/notes/ + - ./tests/data/org/:/data/org/ - ./tests/data/images/:/data/images/ - ./tests/data/ledger/:/data/ledger/ - ./tests/data/music/:/data/music/ diff --git a/tests/conftest.py b/tests/conftest.py index 622da0da..05278412 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -52,7 +52,7 @@ def model_dir(search_config): # Generate Notes Embeddings from Test Notes content_config.org = TextContentConfig( input_files = None, - input_filter = 'tests/data/notes/*.org', + input_filter = 'tests/data/org/*.org', compressed_jsonl = model_dir.joinpath('notes.jsonl.gz'), embeddings_file = model_dir.joinpath('note_embeddings.pt')) @@ -66,7 +66,7 @@ def content_config(model_dir): content_config = ContentConfig() content_config.org = TextContentConfig( input_files = None, - input_filter = 'tests/data/notes/*.org', + input_filter = 'tests/data/org/*.org', compressed_jsonl = model_dir.joinpath('notes.jsonl.gz'), embeddings_file = model_dir.joinpath('note_embeddings.pt')) diff --git a/tests/data/markdown/main_readme.md b/tests/data/markdown/main_readme.md index 5c37b57a..60e92410 100644 --- a/tests/data/markdown/main_readme.md +++ b/tests/data/markdown/main_readme.md @@ -116,8 +116,8 @@ docker-compose build --pull of `khoj_sample.yml` - To run application on test data, update file paths containing `/data/` to `tests/data/` in `khoj_sample.yml` - - Example replace `/data/notes/*.org` with - `tests/data/notes/*.org` + - Example replace `/data/org/*.org` with + `tests/data/org/*.org` 4. 4\. Run diff --git a/tests/data/notes/interface_emacs_readme.org b/tests/data/org/interface_emacs_readme.org similarity index 100% rename from tests/data/notes/interface_emacs_readme.org rename to tests/data/org/interface_emacs_readme.org diff --git a/tests/data/notes/main_readme.org b/tests/data/org/main_readme.org similarity index 100% rename from tests/data/notes/main_readme.org rename to tests/data/org/main_readme.org