mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 21:29:08 +00:00
Give the project a short, less generic name. Rename it to Khoj
- Semantic Search was just a placeholder used to test the idea out Didn't want to get into naming at that point of time
This commit is contained in:
@@ -15,7 +15,7 @@ def cli(args=None):
|
||||
return None
|
||||
|
||||
# Setup Argument Parser for the Commandline Interface
|
||||
parser = argparse.ArgumentParser(description="Expose API for Semantic Search")
|
||||
parser = argparse.ArgumentParser(description="Expose API for Khoj")
|
||||
parser.add_argument('--org-files', '-i', nargs='*', help="List of org-mode files to process")
|
||||
parser.add_argument('--org-filter', type=str, default=None, help="Regex filter for org-mode files to process")
|
||||
parser.add_argument('--config-file', '-c', type=pathlib.Path, help="YAML file with user configuration")
|
||||
|
||||
@@ -22,7 +22,7 @@ def create_script(filepath, content):
|
||||
|
||||
if __name__ == '__main__':
|
||||
# Setup Argument Parser
|
||||
parser = argparse.ArgumentParser(description="Setup the semantic search program")
|
||||
parser = argparse.ArgumentParser(description="Setup the Khoj program")
|
||||
parser.add_argument('--script-dir', '-s', default="./", type=pathlib.Path, help="The project directory. Default: Current Directory")
|
||||
parser.add_argument('--install-dir', '-i', default="./", type=pathlib.Path, help="The directory to install the script. Default: Current Directory")
|
||||
parser.add_argument('--model-dir', '-m', default="./", type=pathlib.Path, help="The directory to store the model in. Default: Current Directory")
|
||||
@@ -32,7 +32,7 @@ if __name__ == '__main__':
|
||||
|
||||
# Arrange
|
||||
eval "$(conda shell.bash hook)"
|
||||
conda activate semantic-search
|
||||
conda activate khoj
|
||||
cd {get_absolute(args.script_dir)}
|
||||
|
||||
# Act
|
||||
@@ -43,7 +43,7 @@ python3 search_types/asymmetric.py -j {get_absolute(args.model_dir)}/notes.jsonl
|
||||
|
||||
# Arrange
|
||||
eval "$(conda shell.bash hook)"
|
||||
conda activate semantic-search
|
||||
conda activate khoj
|
||||
cd {get_absolute(args.script_dir)}
|
||||
|
||||
# Act
|
||||
@@ -54,4 +54,4 @@ python3 main.py -j {get_absolute(args.model_dir)}/notes.jsonl.gz -e {get_absolut
|
||||
create_script(f"{args.install_path}run_server"), run_server_content)
|
||||
|
||||
# Create single command for interactive queries over commandline
|
||||
create_script(f"{args.install_path}semantic-search"), search_cmd_content)
|
||||
create_script(f"{args.install_path}khoj"), search_cmd_content)
|
||||
|
||||
Reference in New Issue
Block a user