Sign in

DagKnows proxy setup instructions for docker

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

The DagKnows proxy runner. This repo contains a minimal set of compose files for running a DagKnows proxy anywhere.

  1. 1

    Requirements

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

    You will need a server with the following specs: * min 16GB RAM

    * min 100GB disk

    * min 2 CPUs * Ubuntu (20.04+)


    You need to have the following packages on the VM. Most of the Linux distributions have it by default. In not, please install. * git * python (3.10+)


    1
  2. 2

    Setup your Environment (dkproxy setup)

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    2
    1. 2.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
      2.1
    2. 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.2
    3. 2.3

      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
      2.3
      1. 2.3.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

        2.3.1
      2. 2.3.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
        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
        2.3.2
      3. 2.3.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

        2.3.3
    4. 2.4

      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.

      sh install_proxy.sh {{PROXY_NAME}} eg: sh install_proxy.sh myproxy
      copied
      2.4
  3. 3

    Run your proxy

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    make up logs
    copied
    3
  4. 4

    (Optional) Update your proxy

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    To update your proxy, simply do:
    make update up logs
    copied
    4