Sign in
agent:

Setup your Environment (dkproxy setup)

There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
  1. 1

    Checkout this dkproxy repo.

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    git clone https://github.com/dagknows/dkproxy.git
    copied
    1
  2. 2

    Install required packages (dkproxy setup)

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    Run the following installer. It will setup all the dependencies needed to run your proxy.

    cd dkproxy && sh install.sh
    copied
    2
  3. 3

    If dagknows tool not installed then do a force install and add it to the path

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    To activate the virtual env dkenv: source ~/dkenv/bin/activate

    If dk tool installed in virtual environment dkenv, then we can skip to dk config init directly.

    source ~/dkenv/bin/activate
    copied
    3
    1. 3.1

      Setup DagKnows CLI

      There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
      3.1
      1. 3.1.1

        Installing DagKnows CLI

        There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

        Install the DagKnows Command Line Interface (CLI). This tool provides wrappers for interacting with DagKnows and managing proxies. The force reinstall option ensures the latest version is installed.

        pip install dagknows --force-reinstall
        copied
        3.1.1
      2. 3.1.2

        Add DK CLI to PATH

        There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

        Add the DK CLI executable to the path environment variable

        export PATH=$PATH:/home/ubuntu/.local/bin
        copied
        3.1.2
      3. 3.1.3

        Configure DK CLI

        There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

        Configure the DagKnows CLI by providing an access token. This step involves specifying the host address for the SaaS instance where DagKnows is running (this can vary for onprem or custom installations) and entering the access token obtained from the app's settings page.

        dk config init
        copied
        3.1.3
  4. 4

    Configure DagKnows CLI

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    The above installation script also installs the dagknows cli. Configure it with the following command:

    dk config init
    copied
    4
    1. 4.1

      Specify the DagKnows server

      There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

      Provide https://app.dagknows.com as the DagKnows server

      Enter the api host to make api calls to:[http://localhost]: https://app.dagknows.com 
      

      hit enter

      4.1
    2. 4.2

      Create a token from DagKnows settings

      There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
      1. Log into your DagKnows account
      2. Click on "Adjust Settings" in the left navigation bar
      3. Look for the "Generate Access Token"
      4. provide a label for the proxy. Like myproxy or dev or prod something. Use only alphanumeric characters.
      5. Specify the validity period of the token. Like 1 year or something.
      6. Click Generate
      7. This creates a row in the token table. Each row has a copy button to copy the token.
      8. Copy the token and use it in the next step
      4.2
    3. 4.3

      Provide a token

      There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
      Enter an access token: : <paste the token from previous step>
      

      hit enter


      That completes your DagKnows CLI config

      4.3
  5. 5

    Install your Proxy

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    Now you can install DagKnows proxy. Just pick a proxy name, preferably the same as the label you used for the token and then run the following command. Use only alphanumeric characters.

    sh install_proxy.sh {{PROXY_NAME}} eg: sh install_proxy.sh myproxy
    copied
    5