How to leverage tools

Here are 5 practical examples of how LLMs can leverage specific tools to extend their capabilities and reduce hallucinations. This guide leverages tools you can find in the Tool Store.

By leveraging these specific tools, LLMs can provide more accurate, personalized, and context-aware responses, significantly enhancing their utility in various real-world applications while reducing the risk of hallucinations or outdated information.

1. Real-Time News Analysis

Scenario: An AI-powered news assistant that provides up-to-date information and analysis.

Tool: Newswire

Benefits:

  • Accesses the latest news articles and reports

  • Provides current information beyond the LLM's training data

  • Reduces hallucinations about recent events or outdated information

Example interaction

User: "What are the latest developments in the ongoing trade negotiations between the US and China?"

LLM: [Gets recent news articles using Newswire]

Toolhouse: [Executes the tool and provides result]

LLM: "Based on the latest news articles, the US and China held high-level trade talks yesterday in Beijing. The key points are:

  1. Both sides agreed to resume regular economic dialogues.

  2. China pledged to increase purchases of US agricultural products.

  3. The US is considering rolling back some tariffs on Chinese goods.

  4. A formal agreement is expected to be signed next month. Would you like me to provide more details on any specific aspect of these developments?"

2. Academic Research Assistant

Scenario: An AI assistant for researchers and students to gather and analyze scholarly information.

Tool Use: Get page contents

Benefits:

  • Retrieves and summarizes full text of academic papers

  • Provides accurate quotes and citations from primary sources

  • Reduces hallucinations about paper contents or research findings

Example interaction

User: "Can you summarize the main findings of this paper: https://www.frontiersin.org/journals/forests-and-global-change/articles/10.3389/ffgc.2023.1198186/full"

LLM: [Retrieves the full text of the paper using the Get page contents tool]

Toolhouse: [Executes the tool and provides result]

LLM: "After analyzing the full text of the paper, here are the main findings:

  1. Global crop yields are projected to decrease by 3-7% for every 1°C increase in global mean temperature.

  2. Wheat and maize are the most vulnerable crops to climate change, while rice shows more resilience.

  3. Adaptation strategies, such as changing planting dates and using drought-resistant varieties, can mitigate up to 40% of the negative impacts.

  4. The effects of climate change on crop yields are not uniform globally, with tropical regions facing more severe challenges. Would you like me to elaborate on any specific finding or methodology used in the study?"

3. Data Analysis from Complex Documents

Scenario: An AI assistant for financial analysts working with annual reports and financial statements.

Tool Use: PDF2CSV

Benefits:

  • Accurately extracts numerical data from complex PDF documents

  • Converts financial tables into easily analyzable CSV format

  • Reduces errors in data entry and analysis

  • Decreases latency and costs because it does not add the entire PDF into your context

Example Interaction:

Example interaction

User: "Extract the income statement data from the last three years from Company X's annual report and calculate the year-over-year growth in revenue. Here's the PDF: (url to PDF)"

LLM: [Uses PDF to CSV tool to extract the income statement table]

Toolhouse: [Executes the tool and provides result]

LLM: "I've extracted the income statement data from Company X's annual report and converted it to CSV format. Here's the analysis of year-over-year revenue growth:

2021 Revenue: $1,250,000,000

2022 Revenue: $1,375,000,000 (10% growth from 2021)

2023 Revenue: $1,512,500,000 (10% growth from 2022)

The company has maintained a consistent 10% year-over-year revenue growth for the past two years. Would you like me to perform any additional calculations or analysis on this data?"

4. Global Project Management

Scenario: An AI assistant for coordinating international project teams across different time zones.

Tool Use: Current time

Benefits:

  • Provides accurate, real-time information about current times in different locations

  • Helps schedule meetings and deadlines across time zones

  • Reduces confusion and missed appointments due to time zone miscalculations

Example interaction

User: "Schedule a team meeting with our colleagues in New York, London, and Tokyo for next Tuesday at 2 PM New York time."

LLM: [Uses the Current time tool to calculate times across different zones]

Toolhouse: [Executes the tool and provides result]

LLM: "I've scheduled the team meeting for next Tuesday. Here are the corresponding times for each location:

  • New York: 2:00 PM (EDT)

  • London: 7:00 PM (BST)

  • Tokyo: 3:00 AM (JST, next day)

Please note that it will be very early morning in Tokyo. Would you like me to suggest alternative times that might be more convenient for all team members?"

5. Personalized Health Coach

Scenario: An AI health coach that provides personalized fitness and nutrition advice.

Tool Use: Memory (recall)

Benefits:

  • Stores and retrieves user-specific health information and preferences

  • Provides personalized recommendations based on user history

  • Reduces repetitive questioning and maintains context across multiple interactions

Example interaction

User: "What should I eat for lunch today?"

LLM: [Accesses stored user information using the Memory (recall) tool]

Toolhouse: [Executes the tool and provides result]

LLM: "Based on your stored preferences and health goals, I recommend the following lunch options:

  1. Grilled chicken salad with mixed greens, avocado, and a light vinaigrette dressing. This aligns with your high-protein, low-carb diet preference.

  2. Quinoa bowl with roasted vegetables and tofu. This vegetarian option meets your occasional meat-free meal request.

  3. Whole grain wrap with turkey, hummus, and vegetables. This provides a balance of protein and complex carbohydrates, which you've mentioned preferring for sustained energy.

Remember, you have a mild dairy allergy, so I've excluded dairy products from these suggestions. Would you like me to provide recipes for any of these options?"

Last updated