Guides

Online Research with Open Source Models

Athena can leverage open-source models to research web and analyse results using open source models with tools.tool_first_workflow()

Set up environment

1!pip install -U athena-intelligence
1import json
2import pandas as pd
3
4ATHENA_API_KEY = "<YOUR API KEY HERE>"
5
6from athena import Model, Tools
7from athena.client import AsyncAthena
8
9athena = AsyncAthena(
10 api_key=ATHENA_API_KEY,
11)

Set up search query and instructions for analysing results

Write a search request and what you want Athena to do with search results.

1message = await async_athena.tools.tool_first_workflow(
2
3 model=ToolModels.MISTRAL_LARGE_0224,
4 tool_name="tavily_search",
5 content="Summarize information on the topic",
6 tool_kwargs={"query": "AI advances in April 2024"},
7
8)
9display(Markdown(message.output_message))
1Based on the search results, it appears that Generative AI (Gen AI) is a significant technological advancement that has the potential to add up to $4.4 trillion in economic value to the global economy. However, companies are finding it challenging to capture this value. Gen AI is particularly exciting in the business world and is being used in various sectors such as manufacturing and the entertainment industry.
2
3Stanford University's 2024 AI Index has charted the meteoric rise of AI tools, and AI is now outperforming humans at basic tasks, necessitating new benchmarks. The power of Gen AI, combined with traditional AI, is expected to provide even more help in the future.
4
5However, the use of Gen AI in the workplace is not without its challenges. Organizations must have a clear policy around Gen AI and be wary of 'shadow AI' - the unofficial use of AI in the workplace by employees without IT approval or oversight.
6
7The Gartner Hype Cycle positions Gen AI at the 'Peak of Inflated Expectations,' on the cusp of a slide into the 'Trough of Disillusionment,' indicating a relatively underwhelming transition period. Despite this, many leaders expect substantial transformative impacts in the short term.
8
9In terms of regulations, policymakers have been drawing up tough new regulations, with Biden’s executive order coming out in October and the European Union’s AI Act being finally agreed in December.
10
11In conclusion, while Gen AI holds immense potential, it also presents challenges in terms of value capture, unofficial use, and regulations.