Skip to content

Private gpt

services.private-gpt.enable

Whether to enable private-gpt for local large language models. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/private-gpt.nix

services.private-gpt.package

The private-gpt package to use. Type: package

Default

pkgs.private-gpt

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/private-gpt.nix

services.private-gpt.settings

settings-local.yaml for private-gpt

Type: YAML value

Default

{azopenai = { };data = {local_data_folder = "/var/lib/private-gpt";};embedding = {mode = "ollama";};llm = {mode = "ollama";tokenizer = "";};ollama = {api_base = "http://localhost:11434";embedding_api_base = "http://localhost:11434";embedding_model = "nomic-embed-text";keep_alive = "5m";llm_model = "llama3";repeat_last_n = 64;repeat_penalty = 1.2;request_timeout = 120;tfs_z = 1;top_k = 40;top_p = 0.9;};openai = { };qdrant = {path = "/var/lib/private-gpt/vectorstore/qdrant";};vectorstore = {database = "qdrant";};}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/private-gpt.nix

services.private-gpt.stateDir

State directory of private-gpt. Type: path

Default

"/var/lib/private-gpt"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/private-gpt.nix