mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Rename org-mode test data directory to more specific org/ from notes/
This commit is contained in:
@@ -16,7 +16,7 @@ services:
|
|||||||
# points to the files you want to index.
|
# points to the files you want to index.
|
||||||
# The path of the mounted directory (right hand side),
|
# The path of the mounted directory (right hand side),
|
||||||
# must match the path prefix in your config file.
|
# 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/images/:/data/images/
|
||||||
- ./tests/data/ledger/:/data/ledger/
|
- ./tests/data/ledger/:/data/ledger/
|
||||||
- ./tests/data/music/:/data/music/
|
- ./tests/data/music/:/data/music/
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ def model_dir(search_config):
|
|||||||
# Generate Notes Embeddings from Test Notes
|
# Generate Notes Embeddings from Test Notes
|
||||||
content_config.org = TextContentConfig(
|
content_config.org = TextContentConfig(
|
||||||
input_files = None,
|
input_files = None,
|
||||||
input_filter = 'tests/data/notes/*.org',
|
input_filter = 'tests/data/org/*.org',
|
||||||
compressed_jsonl = model_dir.joinpath('notes.jsonl.gz'),
|
compressed_jsonl = model_dir.joinpath('notes.jsonl.gz'),
|
||||||
embeddings_file = model_dir.joinpath('note_embeddings.pt'))
|
embeddings_file = model_dir.joinpath('note_embeddings.pt'))
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ def content_config(model_dir):
|
|||||||
content_config = ContentConfig()
|
content_config = ContentConfig()
|
||||||
content_config.org = TextContentConfig(
|
content_config.org = TextContentConfig(
|
||||||
input_files = None,
|
input_files = None,
|
||||||
input_filter = 'tests/data/notes/*.org',
|
input_filter = 'tests/data/org/*.org',
|
||||||
compressed_jsonl = model_dir.joinpath('notes.jsonl.gz'),
|
compressed_jsonl = model_dir.joinpath('notes.jsonl.gz'),
|
||||||
embeddings_file = model_dir.joinpath('note_embeddings.pt'))
|
embeddings_file = model_dir.joinpath('note_embeddings.pt'))
|
||||||
|
|
||||||
|
|||||||
@@ -116,8 +116,8 @@ docker-compose build --pull
|
|||||||
of `khoj_sample.yml`
|
of `khoj_sample.yml`
|
||||||
- To run application on test data, update file paths containing
|
- To run application on test data, update file paths containing
|
||||||
`/data/` to `tests/data/` in `khoj_sample.yml`
|
`/data/` to `tests/data/` in `khoj_sample.yml`
|
||||||
- Example replace `/data/notes/*.org` with
|
- Example replace `/data/org/*.org` with
|
||||||
`tests/data/notes/*.org`
|
`tests/data/org/*.org`
|
||||||
|
|
||||||
4. 4\. Run
|
4. 4\. Run
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user