5); /** * Metadata for the profile configuration option * * Defines the profile as a string input field in the configuration interface. * User prompts can be classified in multiple profiles. By default, 'default'. * * @var array */ $meta['profile'] = array('string'); /** * Metadata for the temperature configuration option * * Defines the temperature as a numeric field with a range from 0.0 to 1.0, * with a default of 0.3. This controls the randomness of the LLM responses. * * @var array */ $meta['temperature'] = array('numeric', '_min' => 0.0, '_max' => 1.0, '_pattern' => '/^\d+(\.\d+)?$/'); /** * Metadata for the top-p configuration option * * Defines the top-p (nucleus sampling) as a numeric field with a range from 0.0 to 1.0, * with a default of 0.8. This controls the cumulative probability of token selection. * * @var array */ $meta['top_p'] = array('numeric', '_min' => 0.0, '_max' => 1.0, '_pattern' => '/^\d+(\.\d+)?$/'); /** * Metadata for the top-k configuration option * * Defines the top-k as a numeric field with a minimum value of 1, * with a default of 20. This controls the number of highest probability tokens considered. * * @var array */ $meta['top_k'] = array('numeric', '_min' => 1); /** * Metadata for the min-p configuration option * * Defines the min-p as a numeric field with a range from 0.0 to 1.0, * with a default of 0.0. This controls the minimum probability threshold for token selection. * * @var array */ $meta['min_p'] = array('numeric', '_min' => 0.0, '_max' => 1.0, '_pattern' => '/^\d+(\.\d+)?$/'); /** * Metadata for the show_copy_button configuration option * * Defines whether the copy button should be shown as a boolean field. * * @var array */ $meta['show_copy_button'] = array('onoff'); /** * Metadata for the replace_id configuration option * * Defines whether the template ID should be replaced with the new page ID * when copying a page with a template. * * @var array */ $meta['replace_id'] = array('onoff'); /** * Metadata for the think configuration option * * Defines whether the LLM should engage in deeper thinking processes before responding. * When enabled, the LLM will use thinking capabilities; when disabled, it will provide direct responses. * * @var array */ $meta['think'] = array('onoff'); /** * Metadata for the use_tools configuration option * * Defines whether the LLM can use tools to enhance its responses. * When enabled, the LLM can call tools like get_document, get_template, and get_examples; * when disabled, these tools will not be available to the LLM. * * @var array */ $meta['use_tools'] = array('onoff'); /** * Metadata for the enable_chromadb configuration option * * Defines whether ChromaDB integration is enabled. * When enabled, ChromaDB features will be available; when disabled, they will be hidden. * * @var array */ $meta['enable_chromadb'] = array('onoff'); /** * Metadata for the ChromaDB host configuration option * * Defines the ChromaDB host as a string input field in the configuration interface. * * @var array */ $meta['chroma_host'] = array('string'); /** * Metadata for the ChromaDB port configuration option * * Defines the ChromaDB port as a numeric input field. * * @var array */ $meta['chroma_port'] = array('numeric'); /** * Metadata for the ChromaDB tenant configuration option * * Defines the ChromaDB tenant as a string input field in the configuration interface. * * @var array */ $meta['chroma_tenant'] = array('string'); /** * Metadata for the ChromaDB database configuration option * * Defines the ChromaDB database as a string input field in the configuration interface. * * @var array */ $meta['chroma_database'] = array('string'); /** * Metadata for the ChromaDB collection configuration option * * Defines the ChromaDB collection as a string input field in the configuration interface. * * @var array */ $meta['chroma_collection'] = array('string'); /** * Metadata for the default institution configuration option * * Defines the default institution as a string input field in the configuration interface. * * @var array */ $meta['default_institution'] = array('string'); /** * Metadata for the Ollama host configuration option * * Defines the Ollama host as a string input field in the configuration interface. * * @var array */ $meta['ollama_host'] = array('string'); /** * Metadata for the Ollama port configuration option * * Defines the Ollama port as a numeric input field. * * @var array */ $meta['ollama_port'] = array('numeric'); /** * Metadata for the Ollama embeddings model configuration option * * Defines the Ollama embeddings model as a string input field in the configuration interface. * * @var array */ $meta['ollama_embeddings_model'] = array('string');