• Resolved cloudchan

    (@cloudchan)


    Dear all,

    AI Engine can allow searching the data from Vector Database, Initial Prompt, Web Search and ChatGPT or other LLM API servers …etc before replying the query. . I can find that I need to write down my website’s information in the initial prompt if I want AI Engine to reply queries from my preferred data.

    My website has a lot of posts, pages and products’ data. Is it possible to ask AI Engine to search data from my website FIRSTY for all queries before searching other sources ? If AI Engine cannot find anything from MySQL/MariaDB Database of my website, AI Engline searchs data from Vector Database, Web Search, ChatGPT API or other LLM API servers by the defined order by the WordPress Administrator. Because the searched data from my website may have a lot of duplicated information or non-managed information, AI Engine must pass these non-managed information to the LLM API server with prompt like “summary the non-managed information below …etc” and get the accurate & better answer from the LLM server before giving the accurate answer to user.

    Does anyone know how to do the above solution ? Or is there any addon like WebSearch for doing this ?

    Thanks !

    Best Regards. Cloud Chan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Val Meow

    (@valwa)

    Hey @cloudchan! ??

    Yes, you can set up this behavior to dynamically generate content before the query is processed. This allows the chatbot to provide more “business-centric” answers tailored to your specific needs and context.

    You can use filters to insert content into your chatbot’s context for each query. This allows you to either run your own script to fetch content from your database or let the chatbot handle it autonomously using function calling. Most of your needs can be addressed by leveraging either the AI Engine’s internal API or Function Calling for chatbot-specific tasks.

    Keep in mind that a minimum level of technical knowledge is required for implementation. If you need assistance in developing a custom solution, consider reaching out to freelancers with experience in AI Engine.

    Thread Starter cloudchan

    (@cloudchan)

    Dear Val Meow,

    Thanks for your reply & suggestion ! I think my previous request is not very difficult so I like to try it firstly by myself. Nevertheless, I shall look for help from ?freelancers with experience in AI Engine for other more complex requirements later.

    After checking https://meowapps.com/ai-engine/api/#filters , I can crawl the data for a query from some URL links with my code and then pass the returned data with my prompt to the ChatGPT API server or one of other LLM API servers via the AI Engine filter “mwai_ai_query( $query )” .

    Am I right ? But I cannot find the detailed method for using “mwai_ai_query( $query )” if I am right.

    I can also find another similar filter “mwai_context_search”.

    Can you tell me where I can find usage’ methods with some examples how to use the above two filters ? Thanks !

    ———–

    On the other hand, I can find that some other AI tools can allow me to add URLs or/and PDF source in the settings without me to write any code and then the AI tools can crawl all content according to these URLs or PDF files before passing to the AI API server for queries with my defined prompt.

    WebSeaarh can crawl data from Tavily. Is it possible to make WebSearch to crawl data from my defined URLs according to the query and then pass the query result to the AI API server with defined prompt for getting better answer according to information from my defined URLs ?

    Best Regards. Cloud Chan

    Thread Starter cloudchan

    (@cloudchan)

    Dear?Val Meow,

    Thanks for your reply !

    I can use simpleTextQuery successfully. But I am not sure how to use mwai_ai_query because I cannot find the detailed explanation how to use mwai_ai_query at https://meowapps.com/ai-engine/api/#filters for modification of the query..

    What is the accurate parameter sent to mwai_ai_query ?

    Thanks !

    Best Regards. Cloud Chan

    Thread Starter cloudchan

    (@cloudchan)

    It works for me. Thanks !

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.