The Assistants function in OpenAI simplifies the method of creating your personal customized AI agent. Your AI assistant could have get right of entry to to the most recent GPT fashions, a code interpreter, and any further directions or wisdom you supply.

On this article, we can information you via making a easy customized AI assistant that may analyze and calculate information from inventory marketplace experiences in PDF shape, sourced from Yahoo Finance. You’ll discover ways to pose any query and obtain detailed analyses and calculations at once out of your customized assistant.

Let’s start.

First, make sure you have an OpenAI account. That is vital to get right of entry to the assistant advent equipment. As soon as in a position, pass to platform.openai.com/assistants and click on at the “Create” button.

Screenshot showing the Create button on OpenAI's platform

Subsequent, supply a reputation in your assistant and input the directions you need it to practice.

Screenshot displaying the fields for naming and instructing a new AI assistant

On this instructional, we can construct an assistant that is helping us resolution questions on Apple’s inventory value.

Subsequent, you’ll make a choice the Language Studying Style (LLM) that fits your wishes. Those fashions are to be had on a pay-as-you-go foundation, permitting you to choose the most efficient have compatibility in your price range and necessities. I will be able to be the usage of gpt-4-turbo for this situation.

Screenshot showing the selection of LLM models on OpenAI's platform

After atmosphere the entirety up, you’ll check your assistant. Cross to the right-hand panel, input any query or message in your assistant, after which click on “Run“.

As an example, I requested the assistant, “What’s Apple’s inventory opening value on 18th of June 2024?” Sadly, it couldn’t supply an invaluable resolution as a result of we had no longer but uploaded the vital information for it to make use of. Let’s get that mounted.

Screenshot showing the assistant's inability to answer without data

If you need your assistant to be more practical than simply the usage of ChatGPT, you will have to imagine including customized information or wisdom explicit on your software. This generally is a textual content report, a PDF, or perhaps a CSV desk containing information no longer normally out there to ChatGPT through default.

For our challenge, I’ve downloaded historic inventory value information for Apple from Yahoo Finance. This dataset comprises opening, top, low, and shutting costs from June 24, 2023, to June 24, 2024, and can function our customized wisdom supply.

Screenshot displaying Apple's historical stock price data from Yahoo FinanceScreenshot displaying Apple's historical stock price data from Yahoo Finance

In case you are following this instructional and wish to obtain the similar information, consult with this web page and click on the “Obtain” button. Be at liberty to make use of any information you like when you have other necessities.

So as to add this on your assistant, navigate to the “Gear” phase, turn on “Record Seek“, after which click on “+ Information“.

Screenshot showing how to activate File Search and add files in the assistant tools section

Add the report, and as soon as it’s uploaded, click on “Connect“.

Screenshot displaying the upload and attach process for a file

Let’s check our assistant once more to look if it could now get right of entry to our information. I’m going to invite it the similar query once more and remember to click on the down arrow at the “Run” button and make a choice “Require device name“.

Screenshot illustrating how to ensure the assistant requires a tool call to process a query

This time, the reaction is a lot more informative. It supplied me with Apple’s inventory opening value on June 18, 2024, retrieved from the report I uploaded previous.

Screenshot showing a more accurate response from the assistant

Should you take a look at the reaction, you’ll realize a small numbered annotation. Soaring over this annotation will display you a snippet of the information supply from the place the ideas was once retrieved.

Screenshot showing an annotated response with a data source snippet

As you’ll see, the assistant plays neatly with our information, handing over correct data via a user-friendly interface.

Now, you’ll ask extra advanced questions to avoid wasting time. As an example, I requested it to determine which day in 2023 Apple had the absolute best opening value.

Screenshot displaying the answer to which day in 2023 had the highest opening price for Apple

Then again, you’ll ask it to supply a checklist of the absolute best opening costs all the way through 2023.

Screenshot showing the list of highest opening prices for Apple in 2023

With the supplied information, you’ll ask all forms of technical questions, enabling the assistant to kind and calculate data temporarily, saving you substantial time in comparison to handbook calculations.

The put up How one can Construct a Customized AI Assistant to Analyze Inventory Marketplace Information seemed first on Hongkiat.

WordPress Website Development Source: https://www.hongkiat.com/blog/custom-ai-assistant-stock-market-data/

[ continue ]