CodBi
    Preparing search index...

    Initial Author: Callari, Salvatore (Callari@WaXCode.net) Maintainer: Callari, Salvatore (Callari@WaXCode.net)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • This functionality answers questions based on the text content of one or more * HTMLInputElement of type "text" or HTMLTextAreaElement elements. It is triggered whenever any of the source text fields change.

      Multiple trigger elements tagged with AI_LLAMA_TXTQA_Source may exist in the within the same XContainer. Question elements are tagged with the CSS class AI_LLAMA_STANDARD_TXTQA_Question. Each question element must have:

      • An id attribute (used as the question key — the AI response is placed into the element with this id)
      • A data-cb-Question attribute containing the question text, which may include placeholder symbols like <[FieldName]> that resolve to the value of the field with CSS class "FieldName" in the same container. Use these placeholders to incorporate the trigger element's value and any other field values into the question.
      • Nested .CXContainer elements tagged with AI_LLAMA_QA_Exclude are excluded from question searches.
      • AIHint: Text shown inside AI-populated fields until the user edits the value. Default: "✨ AI-Generated". Set empty to disable.

                         Note: **According to the EU AI Act, AI-generated content must be clearly labeled. Changing or
                         disabling the AIHint may lead to non-compliance in certain jurisdictions.**
        
      • useinternet: If set to true, enables Brave Search internet access. Default: false.

      • debounce: Debounce delay in milliseconds before sending the request after the last change event. Default: 500.

      • inferencedelay: Maximum seconds to wait for all source fields to be filled before starting inference anyway. Default: 5.

      • location: If set to true, enables geolocation access. The user's coordinates are sent to the AI for location-aware answers. Default: false.

      • language: Language for the AI response (e.g. "German", "English"). If set, appends "Answer in {language}." to each question.

      • ResponseLanguage: Two-letter ISO 639-1 code (e.g. "de", "fr"). Forces the AI to respond in this language, skipping auto-detection. Overrides the AI_LLAMA_STD_Language plugin property for this instance.

      • Specialist: Name of a specialist model registered via AI_LLAMA_STD_SPECIALIST_XXX plugin property. Routes requests to that specialist's dedicated server instance (case-insensitive match).

      • QueueBadge: If set to "true", shows a badge with the current queue position while waiting for inference. Overrides the AI_QueueBadge plugin property for this instance. Default: determined by plugin property.

      • QueueText: Text appended after the queue position number in the badge (e.g. "in queue" → badge shows "3 in queue"). Default: empty.

      • FilterResults: If set to "true", enables PII filtering on Brave Search queries for this instance, overriding the global AI_BraveSearch_FilterResults plugin property. Default: determined by plugin property.

      Parameters

      • toLoad: { [key: string]: unknown }

        Provided by the CodBi.

      • toProcess: Element

        Provided by the CodBi.

      Returns void