Script files for specific OS tasks just for convenience.
Edit the environment variables
| Variable | Value |
|---|---|
| ENV_VARS_FILE | Environment variables file location |
| SCRIPTS_HOME | Scripts repo location |
| PROPSPATH | scripts/ location |
| PYLIBSPATH | scripts/.py/ location |
Example of env-vars file:
set "VARIABLE_1=VALUE1" set "VARIABLE_2=VALUE2" rem Comment
Add the required environment variable to ~/.bashrc file
echo 'export ENV_VARS_FILE="<environment_variables_file_location>"' >> ~/.bashrc
echo 'export SCRIPTS_HOME="<scripts_location>"' >> ~/.bashrc
echo 'export PROPSPATH="<scripts_location>"' >> ~/.bashrc
echo 'export PYLIBSPATH="<scripts_py_libs_directory>"' >> ~/.bashrc
source ~/.bashrcExample of env-vars file:
VARIABLE_1="VALUE1" VARIABLE_2=VALUE2 # Comment
<PROJECT_DIR>/.vscode/launch.json
{
// ...
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Python File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"env": {
"LOGGING_LEVEL": "${input:loggingLevel}",
"<env_var>": "<value>"
}
}
],
"inputs": [
{
"id": "loggingLevel",
"description": "Logging level",
"type": "pickString",
"options": [
"CRITICAL", "FATAL", "ERROR", "WARNING", "WARNING", "INFO", "DEBUG", "NOTSET"
],
"default": "INFO"
}
]
}{
"<model_identifier>": {
"name": "<model_display_name>",
"readonly": true,
"hub": "ollama|huggingface",
"ollama": {
"model": "<model>",
"parameters": "<parameters>",
"info": {
"basename": "<model_basename>",
"opencode": true,
"embeddings": true,
"image": true,
"ocr": true
}
},
"huggingface": {
"organization": "<organization_name>",
"model": "<model>",
"quantization": "<quantization>",
"info": {
"basename": "<model_basename>",
"opencode": true,
"embeddings": true,
"image": true,
"ocr": true
}
}
}
}| Field | Default Value |
|---|---|
| readonly | false |
| <hub>.info.opencode | false |
| <hub>.info.embeddings | false |
| <hub>.info.image | false |
| <hub>.info.ocr | false |
* Windows:
%SCRIPTS_HOME%/llm/sync-ollama
* Linux:$SCRIPTS_HOME/llm/sync-ollama