diff --git a/config/khoj_sample.yml b/config/khoj_sample.yml index 86894c03..ed1a0591 100644 --- a/config/khoj_sample.yml +++ b/config/khoj_sample.yml @@ -22,7 +22,7 @@ content-type: input-filter: # /path/to/images/*.jpg REQUIRED IF input-directories IS NOT SET embeddings-file: "~/.khoj/content/image/image_embeddings.pt" batch-size: 50 - use-xmp-metadata: true + use-xmp-metadata: false music: input-files: # ["/path/to/music-file.org"] REQUIRED IF input-filter IS NOT SET OR diff --git a/src/search_type/image_search.py b/src/search_type/image_search.py index 23a64459..b57d4f20 100644 --- a/src/search_type/image_search.py +++ b/src/search_type/image_search.py @@ -211,9 +211,9 @@ def collate_results(hits, image_names, output_directory, image_files_url, count= # Add the image metadata to the results results += [{ "entry": f'{image_files_url}/{target_image_name}', - "score": f"{hit['score']:.3f}", - "image_score": f"{hit['image_score']:.3f}", - "metadata_score": f"{hit['metadata_score']:.3f}", + "score": f"{hit['score']:.9f}", + "image_score": f"{hit['image_score']:.9f}", + "metadata_score": f"{hit['metadata_score']:.9f}", }] return results diff --git a/src/utils/constants.py b/src/utils/constants.py index 569c5bcb..84c3dfbb 100644 --- a/src/utils/constants.py +++ b/src/utils/constants.py @@ -30,7 +30,7 @@ default_config = { 'input-filter': None, 'embeddings-file': '~/.khoj/content/image/image_embeddings.pt', 'batch-size': 50, - 'use-xmp-metadata': True + 'use-xmp-metadata': False }, 'music': { 'input-files': None,