diff --git a/tests/conftest.py b/tests/conftest.py index 07c5156f..79c9ca89 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -10,7 +10,7 @@ from khoj.main import app from khoj.configure import configure_processor, configure_routes, configure_search_types from khoj.processor.markdown.markdown_to_jsonl import MarkdownToJsonl from khoj.search_type import image_search, text_search -from khoj.utils.config import ImageContent, SearchModels, TextContent +from khoj.utils.config import SearchModels from khoj.utils.helpers import resolve_absolute_path from khoj.utils.rawconfig import ( ContentConfig, diff --git a/tests/data/config.yml b/tests/data/config.yml index 6d3aa35b..a4258028 100644 --- a/tests/data/config.yml +++ b/tests/data/config.yml @@ -1,23 +1,27 @@ content-type: org: - input-files: [ "~/first_from_config.org", "~/second_from_config.org" ] - input-filter: ["*.org", "~/notes/*.org"] - compressed-jsonl: ".notes.json.gz" - embeddings-file: ".note_embeddings.pt" + compressed-jsonl: .notes.json.gz + embeddings-file: .note_embeddings.pt index-header-entries: true - + input-files: + - ~/first_from_config.org + - ~/second_from_config.org + input-filter: + - '*.org' + - ~/notes/*.org plugins: content_plugin_1: - input-files: [ "content_plugin_1_new.jsonl.gz" ] - compressed-jsonl: "content_plugin_1.jsonl.gz" - embeddings-file: "content_plugin_1_embeddings.pt" - + compressed-jsonl: content_plugin_1.jsonl.gz + embeddings-file: content_plugin_1_embeddings.pt + input-files: + - content_plugin_1_new.jsonl.gz content_plugin_2: - input-filter: [ "*2_new.jsonl.gz" ] - compressed-jsonl: "content_plugin_2.jsonl.gz" - embeddings-file: "content_plugin_2_embeddings.pt" - + compressed-jsonl: content_plugin_2.jsonl.gz + embeddings-file: content_plugin_2_embeddings.pt + input-filter: + - '*2_new.jsonl.gz' search-type: asymmetric: - encoder: "sentence-transformers/msmarco-MiniLM-L-6-v3" - cross-encoder: "cross-encoder/ms-marco-MiniLM-L-6-v2" + cross-encoder: cross-encoder/ms-marco-MiniLM-L-6-v2 + encoder: sentence-transformers/msmarco-MiniLM-L-6-v3 +version: 0.9.1.dev0