Watsonx demo application for generating Kusto Query Language from Splunk Search Processing Language
Requires python3 development tools to already be installed
-
Go to the root directory and prepare your python environment.
python3 -m venv client-env
-
Activate the virtual environment:
- MacOS, Linux, and WSL using bash/zsh
source client-env/bin/activate
- Windows with CMD shell
C:> client-env\Scripts\activate.bat
- Windows with git bash
source client-env/Scripts/activate
- Windows with PowerShell
PS C:> client-env\Scripts\Activate.ps1
if there is an execution policy error, this can be changed with the following command
PS C:> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
-
Install the required libraries.
pip3 install -r requirements.txt
-
Provide Environment variables.
# For LLM call WATSONX_API_KEY = <api_key> # Also for SERVER_URL from your watson instance.
-
Run the application.
python3 template.py
You can now access the application from your browser at the following URL.
http://localhost:8057