• Resolved ImageGeleosan

    (@geleosan)


    Hi! Have chatbot a memory or context understanding? Maybe I need turn on this feature…

    I am asking because chatbot is stupid. For example, my first question was “What is best beaches on Phuket”. My second question was “advice me beaches for kids”. Certainly I asked about Phuket. But bot response was about Shardzha (Egipt).

    Model is 4o-mini.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ImageGeleosan

    (@geleosan)

    Ups! It is not Egipt it is UAE. Maybe because Knowledge Navigator. I turned it on. My website is about 10 countries include UAE.

    Plugin Author Imagekognetiks

    (@kognetiks)

    Hello Geleosan (@geleosan),

    Do you have are you using the Knowledge Navigator to index your site? If so, is there published content that would mention the best beaches?

    On the Knowledge Navigator tab of the Chatbot, you can try increase the “Maximum Top Words” and the “Tuing Percentage”. Both of these factor into how deep the Knowledge Navigator will go when creating a TF-IDF map of you site.

    At the bottom of the same tab, you can “Download Data” (in csv format) and inspect your content to see if the expect key words are present.

    Alternately, have you consider using an Open AI Assistant with more specific knowlege?

    Let me know what you learn.

    Stephen

    Thread Starter ImageGeleosan

    (@geleosan)

    Hi. Thank you for quick replay!

    Yes, I use Knowledge Navigator. 5000 and 50%. I tried to set 10000 and 70% after your message but problem is the same. Bot dont understand context of conversation. I need to write full message everytime. I need to ask not “beach for kids” but “beach for kids on phuket”. Although all conversation was about phuket. I dont understand why. Bot must understand a context by default, right? Or via API do bot not understand a context?

    Do I need just create Assistant in OpenAi, set ID into plugin, add additional instructions into plugin?

    • This reply was modified 11 months, 3 weeks ago by ImageGeleosan.
    • This reply was modified 11 months, 3 weeks ago by ImageGeleosan.
    Plugin Author Imagekognetiks

    (@kognetiks)

    Hello Geleosan (@geleosan),

    Apologies as this slipped through the cracks.

    I’ve been working hard on improving content awareness.

    If you’re using an Assistant, you can (as of Version 2.2.7) include a function to search for relevant content to answer visitor questions.

    You will want to include the following in a function in your OpenAI Assistant:



    query_wordpress_api (function definition)

    {
    "name": "query_wordpress_api",
    "description": "Calls a WordPress Rest API endpoint to query the WordPress database for post and page content that might answer the user's questions.",
    "strict": false,
    "parameters": {
    "type": "object",
    "required": [
    "endpoint",
    "query",
    "include_excerpt",
    "page",
    "per_page"
    ],
    "properties": {
    "endpoint": {
    "type": "string",
    "description": "The URL of the WordPress Rest API endpoint"
    },
    "query": {
    "type": "string",
    "description": "Search query to filter posts and pages"
    },
    "include_excerpt": {
    "type": "boolean",
    "description": "Flag indicating whether to include excerpts in the response"
    },
    "page": {
    "type": "number",
    "description": "Pagination parameter to specify which page of results to retrieve"
    },
    "per_page": {
    "type": "number",
    "description": "Number of results to return per page"
    }
    }
    }
    }

    OpenAI Assistants can now use the one function. For security purposes, the assistant must be “registered” in the Kognetiks Chatbot lists of Assistants on the GPT Assistants tab. This will limit unanticiapated use.

    The function should be entered into the Assistant’s “Functions” section.

    Click the “+ Functions” button, then copy/paste the function from above, then click the “Save” button.

    Once you’ve added the Assistant to a page in your website, ask it a question that your content is likely to be able to answer it.

    Let me know what you discover.

    Best!

    Stephen

    • This reply was modified 10 months, 4 weeks ago by Imagekognetiks.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘context’ is closed to new replies.