Skip to main content

Knowledge Base Tools

Tools are collection of fuctions that provide a way for LLM-based chatbot to interact with external world. The tools aid your chatbot to fetch data from external sources and use it to respond to user's questions. They extend chatbot's ability to respond to user questions. You can let the bot from internet sources like Wikipedia,OpenWeatherMap, Google Maps, etc.

Knowledge base tools

Supported tools

To get access to tools, navigate to settings of your bot that uses Knowledge base >> Tools. The number of tools will increase as we continue to add more tools. Currently, we support the following tools:

Each tool receives a description as part of its configuration. The description is used to guide the LLM on how to use the tool. It should be as clear as possible to avoid ambiguity. The clear description will help the LLM to use the tool in the right way.

  1. Arxiv Search
  2. Bing Search
  3. Brave Search
  4. ChatGPT plugin
  5. Duck Duck Go
  6. Google Places
  7. Google Search
  8. Metaphor search
  9. OpenWeatherMap
  10. Serper Search
  11. Wikipedia
  12. Yahoo Finance New
  13. YouTube Search

Arxv is a repository of electronic preprints of scientific papers in the fields of mathematics, physics, astronomy, computer science, quantitative biology, statistics, and quantitative finance, which can be accessed online. You can power your chatbot with Arxiv search tool to search for papers in the repository. This will help your chatbot to respond to questions related to scientific papers.

You will have to fill in some of the parameters to get started with Arxiv search tool. The parameters are:-

  • Number of Search Results

    Number of the top-scored document(s) the tool should consider. Having large number costs the letancy of response. 3 search results are enough to get the right answer.

  • Max Docs

    A limit to the number of loaded documents to the Tool. The high number increases response time. So the number should be set to a reasonable value. Having 3 documents is enough to get the right answer.

  • Max Query Length

    The cut limit on the query used for arxiv search. Query length should be limited to avoid long response time. The recommended length is 300.

  • Max Characters

    The cut limit on the characters of the document to be returned. The recommended number of characters is 4000.

  • Description

This gives your chatbot super power to search the web using Bing search engine. The tool will help your chatbot to respond to questions related to web search. The tool will return the top scored document(s) from the search results.

You will need to obtain Bing search API key to use this tool. You can get the API key from here. The API key is free to use but you will need to have a Microsoft account.

The parameters to be filled are:-

  • API Key

    The API key to be used to access the Bing search API. The API key is obtained from here.

  • Bing search url

    The url to the Bing search API. You can use alternative url if you have one. Lets use the following url

    https://api.bing.microsoft.com/v7.0/search
  • Number of search results.

    Number of the top-scored document(s) the tool should consider. Having large number costs the letancy of response. 3 search results are enough to get the right answer.

  • Description

This gives your chatbot super power to search the web using Brave search engine. The tool will help your chatbot to respond to questions related to web search. The tool will return the top scored document(s) from the search results.

You will need to obtain Brave search API key to use this tool. The API key is free to use but you will need to have a Brave account.

You will need to fill in the following parameters:-

  • API Key

    The API key to be used to access the Brave search API. The API key is obtained from here.

  • Number of search results.

  • Description

ChatGPT plugin

This gives more support to your chatbot by adding extra functionality from GPT Plugins. You only need a plugin url to get started. Example of the plug in url is:-

https://www.klarna.com/.well-known/ai-plugin.json

The url should be a valid json file.

Duck Duck Go

This tool gives your chatbot super power to search the web using Duck Duck Go search engine. The tool will help your chatbot to respond to questions related to web search. The tool will return the top scored document(s) from the search results.

what you need to set up the tool:-

  • Number of search results.

    Number of the top-scored document(s) the tool should consider. Having large number costs the letancy of response. 3 search results are enough to get the right answer.

  • Description.

This tool provides ability to search without a need of API key. Thanks to the Duck Duck Go team for providing the API for free, you can support them by donating here.

Google Places

This aid your chatbot to search for places using Google Places API. The tool will help your chatbot to respond to questions related to places. This is cool tool to use if you are building a chatbot that will help people to find places. The uses cases are endless.

What you need to set up the tool:-

  • Google Place API key.

    The API key to be used to access the Google Places API. The API key is obtained from here.

  • Number of search results.

    Number of the top-scored document(s) the tool should consider. Having large number costs the letancy of response. 3 search results are enough to get the right answer.

  • Description.

    Example: "This tool helps you know about places around the world."

Use this tool to power your chatbot with Google search engine. The tool will help your chatbot to respond to questions related to web search.

You will need to set up the following parameters:-

  • Google Search API Key.

    The API key to be used to access the Google Search API. The API key is obtained from here.

  • Google Custom Search Engine ID.

    The ID of the custom search engine to be used. The ID is obtained from here.

  • Search Engine Name.

  • Number of search results.

  • Description.

Metaphor

Metaphor is a search engine optimized for LLMs. It provides efficient way for your chatbot to get latest information/details about the subject.

  • Metaphor API Key.

    Metaphor provides free 1000 searches per month which should be ideal for a small chatbot. You can get metaphor API Key from here

  • Number of search results.

    Number of the top-scored document(s) the tool should consider. Having large number costs the letancy of response. 3 search results are enough to get the right answer

  • Description.

OpenWeatherMap

This will help your chatbot get accurate weather information. This is handful tool when you chatbot to provide weather details to users.

What you need to set up the tool:-

  • OpenWeatherMap API Key.

    Get your open weather API key by signing up or logging in here

  • Description.

    Example: "Useful when you need to know about weather details of a place"

This gives your chatbot super power to search the web using Serper search engine. The tool will help your chatbot to respond to questions related to web search. The tool will return the top scored document(s) from the search results.

You will need to obtain Serper search API key to use this tool. The API key is free to use but you will need to have a Serper account.

You will need to fill in the following parameters:-

  • Serper API Key.

    The API key to be used to access the Serper search API. The API key is obtained from here.

  • Search Engine.

  • Geo Location.

  • Number of search results.

  • Language.

  • Description.

Wikipedia

This gives your chatbot super power to search the web using Wikipedia search engine. The tool will help your chatbot to respond to questions related to web search. The tool will return the top scored document(s) from the search results.

What you be setting:-

  • Number of search Results

    Number of the top-scored document(s) the tool should consider. Having large number costs the letancy of response. 3 search results are enough to get the right answer.

  • Language.

    The language to be used to search the Wikipedia.

  • Max Characters.

    The cut limit on the characters of the document to be returned. The recommended number of characters is 4000.

  • Description.

Yahoo Finance News

This is helpful tool if you want your chatbot to respond to questions about finance details of most companies.

What you will have to configure:-

  • Number of search Results.

    Number of the top-scored document(s) the tool should consider. Having large number costs the letancy of response. 3 search results are enough to get the right answer.

  • Description

Do you want your chatbot to provide links to YouTube videos related to person/topic? This tool will help you achieve that. All you need is a good description that will guide the LLM on how to use the tool. Then you are good to provide relevant YouTube videos to your users as support knowledge.

Sample use cases

Lets see what the tools can do. Will show few of them here. Just log in sarufi to build cool chatbot that utilizes the power of these tools

Lets look at how duckduck go engine can support your chatbot. The question is about State of the art object detection. With the help of duckduck go, the bot was able to provide the right answer.

Tools: DuckDuck Go

With tools, you LLM based chatbot will be able to provide accurate information to your users. Sign up/Log in to sarufi to build cool chatbot that utilizes the power of these tools.