Overview

This location of NeuralSeek is where users can edit the configurations for NeuralSeek’s features. There are two types of configurations: Default Configurations and Advanced Configurations.

Configure

Default Configurations

These options are available by default, upon provisioning NeuralSeek in a new instance. You may use the "Show Advanced Options" button on the Configure screen to show more / advanced settings.

Default configuration

KnowledgeBase Connection

Users can change their KnowledgeBase type along with the associated URL, API keys, project ID, and other relevant information. Use the dropdown arrows to manually configure the fields of the schema in the connected KnowledgeBase.

knowledgebase_connection

  • KnowledgeBase Type: The KnowledgeBase provider.
  • KnowledgeBase Language: The language of documents loaded into the selected KnowledgeBase.
  • Notes: Optionally, add any notes related to the selected KnowledgeBase configuration.
  • Curation Data Field: Select the parameter of your FAQ content/document body.
  • Link Field: Select the URL field from the document metadata - shown below the title, or served in the Virtual Agent chat bubble as a link.
  • Document Name Field: The document metadata field for document "Title".
  • Attribute sources inside LLM Context by Document Name: Users have the option to enable or disable attributing sources inside LLM context by document name. For example, when disabled the output will be formatted with only the document contents. When enabled, the output will be formatted with an introductory sentence that attributes the 'document content' to the appropriate document 'name' (e.g. The document 'name' states that: 'document content'). This helps some LLMs follow the track of information.
  • Filter Field: Select document metadata field to use for filtering. For example, you can filter on a 'document_type' field for only 'PDF' types.
  • Re-Sort Values List: Users are able to enter a prioritized list of values that you want to re-rank above other results, regardless of KB score. Click the light bulb icon to add a new row and enter the value of priority.

LLM Details

This is where users can add a LLM of choice, and set or modify their LLM model settings. By clicking "Add an LLM", users will be prompted to select an LLM from their platform of choice and enter the relevant information such as API keys, endpoint URLs, project ID's, etc. Use the dropdown arrow to enable languages of choice: there are a total of 56 supported LLM languages. Users can also modify which NeuralSeek functions to enable for the added LLM. Note that you must add at least one LLM. If you add multiple, NeuralSeek will load-balance across them for the selected functions that have multiple LLM's. Features that an LLM are not capable of not be available for selection. If you do not provide an LLM for a function, there is no fallback and that function of NeuralSeek will be disabled.

llm_details

  • API/Access Key: The LLM / Service provider's API or Access key.
  • Secret/Zen Key: The Service provider's secondary key (only for some providers)
  • Endpoint: The endpoint URL for the selected service.
  • Region: The region where the LLM service is provisioned.
  • Project Id: The project ID for the LLM workspace.
  • LLLM Languages: Enable or disable specific languages to be used with the selected LLM.
  • LLM Functions: Enable or disable specific functions for each LLM, essentially selecting which LLM to use for each task, or allowing load-balancing for specific tasks. E.g. one option is to use a specific LLM for seek, and a different LLM for maistro or translate, allowing for flexible and specific use cases.
  • LLM ID: The ID/internal name of the selected LLM. Use this ID on API calls or from mAIstro.
  • Test: Run a test completion against the LLM, verifying the credentials. This does not 'save', you must still 'save' your settings with the main UI button.
  • Delete: Remove the selected LLM from the configuration.

Note

This section is only available if you are using BYOLLM (bring your own LLM) plan of NeuralSeek.

Not all LLM providers are equal - All options are listed here, even though your provider may not need these specific parameters.

Company/Organization Preferences

This is where you can configure your company name, and description of what the company primarily focuses on.

company_org_preferences

  • Company or Organization Name: This field is used to help align user queries to the company KB. E.g., "How do I use your product?" will target towards this value.
  • Company Response Affinity: Enable to add affinity to your company or brand in addition to existing text that may be already present in your KnowledgeBase and Stump Speeches.
  • Stump Speech: Effectively an "always pinned document" that is included in the documentation for every seek call. This helps answer questions as a fallback knowledge source when the user's search fails to produce relevant documentation.

Platform Preferences

Your one-stop-shop for all platform-related preferences. Set timeouts, configure embedded links, Virtual Agent output format, etc.

platform_preference

  • Timeout: Set this to a few seconds less than the timeout of your chatbot platform. When the timeout is reached, NeuralSeek will attempt to respond with a cached answer if available.
  • Context Turns: The number of turns in the conversation to pass to the LLM. Increasing this is not recommended as it will reduce the LLM context available for your documentation.
  • Default Output Language: The language to reply in. Setting the language value on the API will override this parameter. Set to "Match input" to try and identify the input language and respond in that detected language.
  • Translate to KB Language: When enabled, translate queries into the language selected on the KnowledgeBase.
  • Virtual Agent Type: Select the type of Virtual Agent for curation of answers. This is the format NeuralSeek will use to build the chatbot file.
  • Embed Links into returned responses: Enable to embed clickable links into the seek generated answers on the API side.
  • Custom Stopwords List: Stop Words - A list of "not useful" or insignificant words to remove pre-processing. Add words here to override NeuralSeek's list of stopwords.

Intent Categorization

Create types of categories and with natural language descriptions to control how intents in user questions can be categorized. Usually a question would be automatically categorized as FAQ, but you can provide additional custom categories here.

intent_categorization

  • Category: The name of the category.
  • URL/Link: The link to return for answers in this category. This overrides the URL returned from the documentation source.
  • Description: A natural language description of the category. E.g. "Breed of dog, like Yorkie or Labrador."

Governance and Guardrails

Settings related to governance, prompt protection, profanity filtering, etc

Attribute Checking

attribute_checking

  • Adjust misinformation tolerance for generating text about the company, or associating people or things that lack specific references in the KnowledgeBase material by using the sliding scale from "Rigid" to "Standard". The more rigid your settings, the higher the chances of occasionally blocking legitimate questions that use alternate wording or are poorly documented in your KnowledgeBase.

Semantic Score

Toggle the icons to enable or disable the Semantic Score Model, using Semantic Score as the basis for Warning & Minimum confidence (e.g. Do NOT Enable for use cases requiring language translation), re-ranking the search results based on the Semantic Match, and checking the document titles and URL's as part of the Semantic Match. Note that semantic scoring will not be accurate when getting answers in a different language than your KnowledgeBase source docs.

semantic_score

  • Enable the Semantic Score Model: The Semantic Score model compares the generated answer against the KnowledgeBase sources, and rates the answer based on the quantity and focus of matches to the KnowledgeBase and Stump Speech source documentation (e.g. is the answer primarily formed from a single source or many?)
  • Use Semantic Score as the basis for Warning/Minimum: Enabling this uses the Semantic Score for warning/minimum confidence settings. Disabling will use the KB confidence % instead. Not recommended for non-English use-cases
  • Re-rank search results based on Semantic Match: Re-order the KnowledgeBase documentation snippets based on how well the passage matches the answer given.
  • Check document titles as part of the Semantic Match: Include the document title while calculating the Semantic Match Score.
  • Check document URLs as part of the Semantic Match: Include the document URL while calculating the Semantic Match Score.

semantic_model_tuning

  • Semantic Model Tuning: Use the sliding scales to further tune the Semantic Match.
    • Missing key search term penalty: After scoring, this penalty is applied for answers that are missing KnowledgeBase attribution of proper nouns that were included in the search.
    • Missing search term penalty: After scoring, this penalty is applied for answers that are missing KnowledgeBase attribution of other nouns that were included in the search.
    • Source Jump penalty: When answers join across many source documents it can be an indication of lost meaning or intent, depending on your source documentation.
    • Total Coverage weight: Looking at the answer, how much weight should be given to the total coverage alone, regardless of other penalty. Increasing this helps prevent abnormally low scores from long, highly-stitched answers. Decreasing will better catch hallucination in short answers.
    • Re-Rank Min Coverage %: What is the minimum coverage of the total answer that the top used source document needs to be re-ranked over the top KB-scored document.

Prompt Injection Mitigation

Users are able to block malicious attempts from users trying to get the LLM to respond in disruptive, embarrassing, or harmful ways.

prompt_injection_mitigation

  • Prompt Injection Threshold: A sliding scale to block any inputs that score higher than this percentage against the Prompt Injection model.
  • Blocked Word Action: Either remove the offending words from the user input, or block the question altogether.
  • Blocked Word List: Enter words or phrases (separated by commas) that are not allowed on the user input. This is useful for blocking specific competitive customer or product names, as well as other sensitive words not covered by NeuralSeek's base corpus.

Profanity Filter

Users are able to enable or disable the profanity filter, as well as add a text to reply with for sensitive questions that are blocked.

profanity_filter

  • Enable profanity filter: Choose which filter to use for profanity filtering. You may use the LLM's moderation endpoint if available, the NeuralSeek Filter, or disable it.
  • Blocked reply text: The text to show when the input or question is blocked. E.g. "That seems like a sensitive question."

Warning Confidence

Use the sliding scale to increase the confidence threshold.

warning_confidence

  • Confidence %: Any answers lower than this number will have the below text pre-pended to the answer given.
  • Warning text: The text to pre-pend to the answer given.

Minimum Confidence

Use the sliding scale to increase the minimum confidence percentage and the minimum confidence percentage to display a URL. Add a text to reply with for questions not meeting the minimum confidence, and select whether to add a URL fallback on minimum. (e.g. "There is nothing in our knowledge base about that.").

min_confidence

  • Minimum Confidence %: Any answers lower than this number will have the below text substituted in place of the answer.
  • Reply text: The response to give when answers are below the minimum confidence % set.
  • Minimum Confidence % to display a URL: Any answers lower than this number will not return a linked URL.
  • URL Fallback Optional - A URL to offer when the minimum confidence is not met.

Minimum Text

Use the sliding scale to set a desired minimum amount of words in a question.

min_text

  • Minimum Words: The minimum number of words in a user question/input.
  • Reply Text: Add a text to reply with for questions not meeting the minimum input word length. (e.g. "Give me a bit more to go on...").

Maximum Length

Use the sliding scale to set a desired maximum amount of words in a question.

max_length

  • Maximum Words: The maximum number of words in a user question/input. Set to 100 to remove the limit. Use a low limit to help mitigate adversarial questions designed to generate inappropriate answers.
  • Reply Text: Add a text to reply with for questions over the input word limit. (e.g. "Can you please summarize your question for me? Questions should be limited to 20 words.").

Advanced Configuration

These (expanded) options are available after enabling "Show advanced options" from the default configuration.

Advanced configuration

KnowledgeBase Tuning

Tuning your KnowledgeBase is an important part of creating a well performing system.

knowledgebase_tuning

  • Document Score Range: The upper range score of documents to return. E.g. when set to 0.8 or 80%, return the top scoring 80% of documents, discarding the lowest 20% scored documents. The smaller the number, the more strict the score threshold will be. Generally best set to a high number, used with Max Docs setting.
  • Document Date Penalty: Penalize document scores that include old dates. A higher number means a higher penalty for older documents, scaling with time/age.
  • KB Query Cache: Limit repeated queries to the KnowledgeBase by caching KB queries. Set this to the number of minutes you'd like to preserve cached KB queries.
  • Max Documents per Seek: The number of documents to send to the LLM on each Seek action. Generally the best results are seen with this set to 4-5 documents.
  • Snippet Size: The character count to pass to the KB for document passage size. The larger the number, the bigger the documentation chunk. Generally best as a smaller number - around 500.
  • Max Raw Score: The highest all-time document score NeuralSeek has seen from the KB. NeuralSeek uses this number internally to calculate a 100% score for documents.

Hybrid and Vector Search Settings

Offering the ability to choose from searching with Lucene, Vector, or a Hybrid approach

vector settings

  • Query Type: The type of query that NeuralSeek will use to gather source documentation.
    • Lucene: "Exact match" queries.
    • Vector: Vector similarity search, based on your deployed Vector model.
    • Hybrid: A combined search query that slightly boosts Lucene results, allowing for graceful fallback to Vector results if no exact matches are found.
  • Use the Elastic ELSER model? The query format is different using ELSER vs deployed KNN models. Select False if not using Elastic's ELSER model.
  • ELSER - Model ID: The name of the deployed and running model.
  • ELSER - Embedding Field: The name of the metadata field where the generated Vector embeddings are stored.
  • Elastic KNN Query: The JSON of the KNN Vector query to run. There are a couple values to set within the JSON:
    • field: The name of the metadata field where the Vector embeddings are stored.
    • model_id: The name of the deployed and running model.
    • model_text: We offer a << query >> expansion variable to insert the query generated by NeuralSeek. Useful to edit if some Vector models require a specific format, e.g. question: <<query>>
    • See the Elastic documentation for more info around the other available parameters.

Prompt Engineering

This allows expert users to inject specific instructions into the base LLM prompt. Most use cases will not need this and should not use this. (e.g. do not enter "provide factual information" or "act as a helpful customer support agent". NeuralSeek's extensive prompting already does this.)

Do not casually enable, as you can weaken the safeguards and extensive prompting that NeuralSeek provides out-of-the-box. Do not use any language other than English in prompt engineering.

prompt_engineering weight_tuning_warning

  • Prompt Instructions: Text to add to the end of the LLM prompt. This can rarely be helpful, but some examples might be "Answer with a bulleted list if possible", or "Answer in cowboy dialect".

Answer Engineering and Preferences

Customizing answer engineering and setting preferences provides adaptability to different contexts.

answer_engineering_preferences

  • Answer Verbosity Utilize the sliding scales to set whether the answer generation would stick to being concise and short, or offer more freedom to be flexible and wordy.
  • Force Answers from the KnowledgeBase: Enable to add extra prompting to help "force" the answers from returned documentation. Generally best to keep this enabled.
  • Regular Expressions: Click the light bulb icon to add a new row. Input a regular expression and a corresponding replacement. For example, use this feature to remove or swap phone numbers, emails, etc.

Intent Matching and Cache Configuration

NeuralSeek automatically generates and groups user input into intents. When a user input does not match an existing intent, the question is added to the generic FAQ group.

intent_matching_cache_config

The following types of intent matches are available:

  • Exact Match: The user input exactly matches an intent.
  • Vector Similarity: Compare the vector similarity of the user input to existing intents, matching with similar intents.
    • Utilize the "Try it Out" feature to test intent similarity. Input an example sentence and click the 'Test' button. The output will show similar intent pulled from the Curate tab and a corresponding similarity score.
    • Utilize the "Intent Match Threshold" sliding scale to set the minimum match percentage to match an existing Intent.
  • Fuzzy Match: The user input closely matches an intent, but not exactly.
  • Keyword Match: The user input contains keywords that exactly match keywords in an intent.
  • Fuzzy Keyword Match: The user input contains keywords that closely match an intent.

Users can also configure how the answer caching is to be done for edited answers, and normal answers. This is useful for speeding up response times and producing more consistent results.

  • Edited Answer Cache: Define the minimum amount of edited answers before language generation stops, and cached answers are served. Set the scale to '0' to disable the edited answer cache.
  • Normal Answer Cache: Define the minimum amount of normal language generated answers to store before language generation stops, and cached answers are served. Set the scale to '0' to disable the edited answer cache.

Note

Edited answers have priority in the Normal Answer Cache, followed by the most recent generated answer.

Table Understanding

This pre-processes your documents to extract and parse tabular data into a format suitable for conversational query. Since this preparation process is both costly and time-consuming, this feature is opt-in and will consume 1 seek query for every table preprocessed. Web Crawl Collections are not eligible for table understanding, as the re-crawl interval will cause excessive compute usage. Table preparation time takes several minutes per page. Please contact [email protected] with details of your opportunity and use case to be considered for access.

  • Discovery Collection IDs: Click the light bulb icon to add a new row. Input the desired collection ID from Watson Discovery for table preparation.

Note

Table Understanding requires a compatible LLM with Table Understanding Enabled. Not all LLMs are capable of Table Understanding.

table_understanding

Personal Identifiable Information (PII) Handling

Users can define how to handle any detected PII data that was included in the question.

pii_handling

The following actions to take when PII is found on user input are available:

  • Mask: Mask, and store, PII when it is detected in the user input. Masking will hide the PII in all locations.
  • Flag: Flag, and store, for PII when it is detected in the user input. PII will be flagged in all locations.
  • No Action: No action will be taken when PII is detected in the user input. It will be stored in plain text.
  • Hide (retain for Analytics): Hide (mask) the PII when it is detected in the user input, but keep the PII in the database for Analytics.
  • Delete (including from Analytics): Delete the PII entirely when it is detected in the user input, including from the stored Analytics.

The configuration also lets you add any particular examples of PII data, so it can be better detected.

  • Pre-LLM PII Filters: These run dynamically on user input before it is sent to the LLM or KnowledgeBase. Click the light bulb icon to add a description such as a phone number and a corresponding regular expression.
  • LLM - Based PII Filters: These use the chosen LLM to identify PII. Click the light bulb icon to add an example sentence and corresponding PII elements, separated by commas.

Some of NeuralSeek's PII Detectors are shown here:

pii_detectors

Note

Utilize the "Try it Out" feature to test the set PII filters. Input an example sentence and click the 'Test' button. The output will show the test sentence, a true or false response if PII was detected, and what element of the sentence was detected as PII.

Corporate Document Filter

Connect NeuralSeek to an external corporate rules engine to filter allowed documentation by user. Each request will send the ID's of the found documentation to an endpoint you set here. Any IDs not returned from the corporate filter will be blocked.

  • Enable Corporate Filter: If enabled, fill out all relevant information including:
    • Base URL for the corporate filter (get): The URL of the corporate document filter engine.
    • URL parameter for the UserName: The parameter name for the user's ID.
    • URL parameter for the KB field: The parameter name for the "document ID" for permission filtering.
    • KnowledgeBase field to send: The KB metadata field to send as the "document ID".

corporate_doc_filter

Corporate Logging

Connect NeuralSeek to a corporate audit logging endpoint. When connected and enabled, all requests and responses to the Seek API endpoint, as well as the Curate tab will be logged to your Elasticsearch instance. Users are able to log the full LLM "Seek" prompt for Audit and Compliance reasons.

  • Enable Corporate Logging: Toggle the icon to Enable or Disable this feature. If enabled, fill out all relevant information including: Elasticsearch Endpoint and Elasticsearch API Key.
  • Prompt Logging: Type "agree" into the provided box to agree to the provided Non-Disclosure Agreement and enable prompt logging.

corporate_logging prompt_logging

Settings and Changelogs

  • Download Settings: Click this to download a .dat copy of all settings in the configure tab to your local machine.
  • Upload Settings: Click this to upload and restore settings from a .dat copy backup of all settings in the configure tab from your local machine.
  • Change Logs: Click to view the change log history of all settings changed in this instance.
    • From this screen, you may "revert" settings and audit which user made which changes.

Download and upload settings settings changelog


Ⓒ 2024 NeuralSeek, all rights reserved.