ホームページ >テクノロジー周辺機器 >AI >在庫の洞察のためにマルチモーダルエージェントシステムを構築する方法は?
マルチモーダルエージェントシステムは、人工知能の分野での革新的な進歩を表しており、テキスト、画像、オーディオ、ビデオなど、インテリジェントテクノロジーの機能を大幅に強化する統一されたシステムなど、多様なデータ型をシームレスに組み合わせています。これらのシステムは、さまざまなソースから情報を独立して処理、分析、合成できる自律的なインテリジェントエージェントに依存し、複雑な状況のより深く微妙な理解を促進します。
マルチモーダル入力とエージェント機能を統合することにより、これらのシステムは、変化する環境やユーザーの相互作用にリアルタイムで動的に適応し、より応答性の高いインテリジェントな体験を提供します。この融合は、さまざまな産業の運用効率を高めるだけでなく、人間のコンピューターの相互作用を高め、より流動的で直感的で、文脈的に認識します。その結果、マルチモーダルエージェントフレームワークは、テクノロジーとの対話と利用の方法を再構築し、セクター全体の無数のアプリケーションの革新を推進するように設定されています。
学習目標データサイエンスブログの一部として公開されました。 目次
エージェントAIシステム画像分析機能を備えたエージェントAIシステムマルチモーダルエージェントシステムを構築して、Google Colabでオラマを使用したマルチモダルエージェントシステムの別の例の別の例のOllamaを使用したハンズオンPythonの実装を説明するマルチモーダルエージェントシステムを構築する洞察2社のストックチャート(画像として提示された)を解釈および分析するように設計されたCrewaiのビジョンツールを最初に活用する洗練されたマルチモーダルエージェントシステムを構築します。このシステムは、DeepSeek-R1-Distill-Qwen-7Bモデルの力を活用して、これらの企業の株式の行動の詳細な説明を提供し、両社のパフォーマンスに関する十分な熟練した洞察を提供し、行動を比較します。このアプローチにより、視覚データ分析と高度な言語モデルを組み合わせて、情報に基づいた意思決定を可能にすることにより、市場動向の包括的な理解と比較が可能になります。
deepseek-r1-distill-qwen-7bモデルは、蒸留されたdeepseek R1のモデルの1つです。これは、堅牢なパフォーマンスを維持しながら効率を高めるように設計された、より大きなDeepSeek-R1アーキテクチャの蒸留バージョンです。ここにいくつかの重要な機能があります:
モデルは数学的なタスクに優れており、Math-500ベンチマークで
92.8%の印象的なスコアを達成し、複雑な数学的推論を効果的に処理する能力を示しています。 その数学的能力に加えて、deepseek-r1-distill-qwen-7bは、事実上の質問を回答するタスクで合理的にうまく機能し、 49.1%を
49.1%このモデルを活用して、株式チャート画像からの情報の抽出後、企業の株式の行動の背後にある理由を説明し、見つけます。
Google ColabでOllamaを使用した実践的なPythonの実装
下の2つの株式チャートは、乗組員への入力として与えられました ストック洞察のためのマルチモーダルエージェントシステムの別の例
最終出力 ansのマルチモーダルエージェントフレームワークとは何ですか。マルチモーダルエージェントフレームワークは、テキスト、画像、オーディオ、ビデオなどの多様なデータ型を統合されたAIシステムに組み合わせています。この統合により、インテリジェントエージェントは、より微妙で効率的な意思決定のために、複数の形式のデータを分析および処理できます。乗組員AIとは何ですか?クルーAIは、自律的なAIエージェントを、複雑なタスクを完了するために協力して作業するまとまりのあるチームに調整するように設計された高度なオープンソースフレームワークです。システム内の各エージェントには、指定されたツールが装備され、明確に定義された目標によって駆動され、実際の作業員の構造と機能を模倣している特定の役割が割り当てられます。 q3。乗組員AIビジョンツールは、マルチモーダルシステムをどのように強化しますか?乗組員AIビジョンツールにより、エージェントは画像からテキストを抽出および処理できます。この機能により、システムは視覚データを理解し、意思決定プロセスに統合し、ワークフローの効率をさらに向上させます。画像分析機能を備えたエージェントAIシステムからどの産業が恩恵を受けることができますか?これらのシステムは、医療、製造、小売などの業界で特に有益です。これは、医療診断や品質管理などのタスクにとって、画像認識のリアルタイム分析と精度が重要です。 DeepSeek R1の蒸留モデルとは何ですか? DeepSeek-R1の蒸留モデルは、蒸留と呼ばれるプロセスを使用して作成された、より小さく、より効率的なDeepSeek-R1モデルのバージョンであり、計算需要を減らしながら元のモデルの推論力の多くを保存します。 これらの蒸留モデルは、DeepSeek-R1によって生成されたデータを使用して微調整されています。これらの蒸留モデルのいくつかの例は、deepseek-r1-distill-qwen-1.5b、deepseek-r1-distill-qwen-7b、deepseek-r1-distill-qwen-14b、deepseek-r1-distill-lama-8bです。
!pip install crewai crewai_tools
!sudo apt update
!sudo apt install -y pciutils
!pip install langchain-ollama
!curl -fsSL https://ollama.com/install.sh | sh
!pip install ollama==0.4.2
ステップ2。Ollamaサーバーをセットアップするためのスレッドの有効化
import threading
import subprocess
import time
def run_ollama_serve():
subprocess.Popen(["ollama", "serve"])
thread = threading.Thread(target=run_ollama_serve)
thread.start()
time.sleep(5)
ステップ3。Ollamaモデルの引っ張り
!ollama pull deepseek-r1
ステップ4。OpenaiAPIキーとLLMモデルの定義
import os
from crewai import Agent, Task, Crew, Process, LLM
from crewai_tools import LlamaIndexTool
from langchain_openai import ChatOpenAI
from crewai_tools import VisionTool
vision_tool = VisionTool()
os.environ['OPENAI_API_KEY'] =''
os.environ["OPENAI_MODEL_NAME"] = "gpt-4o-mini"
llm = LLM(
model="ollama/deepseek-r1",
)
ステップ5。エージェントの定義、乗組員のタスク
def create_crew(image_url,image_url1):
#Agent For EXTRACTNG INFORMATION FROM STOCK CHART
stockchartexpert= Agent(
role="STOCK CHART EXPERT",
goal="Your goal is to EXTRACT INFORMATION FROM THE TWO GIVEN %s & %s stock charts correctly """%(image_url, image_url1),
backstory="""You are a STOCK CHART expert""",
verbose=True,tools=[vision_tool],
allow_delegation=False
)
#Agent For RESEARCH WHY THE STOCK BEHAVED IN A SPECIFIC WAY
stockmarketexpert= Agent(
role="STOCK BEHAVIOUR EXPERT",
goal="""BASED ON THE PREVIOUSLY EXTRACTED INFORMATION ,RESEARCH ABOUT THE RECENT UPDATES OF THE TWO COMPANIES and EXPLAIN AND COMPARE IN SPECIFIC POINTS WHY THE STOCK BEHAVED THIS WAY . """,
backstory="""You are a STOCK BEHAVIOUR EXPERT""",
verbose=True,
allow_delegation=False,llm = llm
)
#Task For EXTRACTING INFORMATION FROM A STOCK CHART
task1 = Task(
description="""Your goal is to EXTRACT INFORMATION FROM THE GIVEN %s & %s stock chart correctly """%((image_url,image_url1)),
expected_output="information in text format",
agent=stockchartexpert,
)
#Task For EXPLAINING WITH ENOUGH REASONINGS WHY THE STOCK BEHAVED IN A SPECIFIC WAY
task2 = Task(
description="""BASED ON THE PREVIOUSLY EXTRACTED INFORMATION ,RESEARCH ABOUT THE RECENT UPDATES OF THE TWO COMPANIES and EXPLAIN AND COMPARE IN SPECIFIC POINTS WHY THE STOCK BEHAVED THIS WAY.""",
expected_output="Reasons behind stock behavior in BULLET POINTS",
agent=stockmarketexpert
)
#Define the crew based on the defined agents and tasks
crew = Crew(
agents=[stockchartexpert,stockmarketexpert],
tasks=[task1,task2],
verbose=True, # You can set it to 1 or 2 to different logging levels
)
result = crew.kickoff()
return result
ステップ6。乗組員の実行
text = create_crew("https://www.eqimg.com/images/2024/11182024-chart6-equitymaster.gif","https://www.eqimg.com/images/2024/03262024-chart4-equitymaster.gif")
pprint(text)
最終出力
Mamaearth's stock exhibited volatility during the year due to internal<br> challenges that led to significant price changes. These included unexpected<br> product launches and market controversies which caused both peaks and<br> troughs in the share price, resulting in an overall fluctuating trend.<br><br>On the other hand, Zomato demonstrated a generally upward trend in its share<br> price over the same period. This upward movement can be attributed to<br> expanding business operations, particularly with successful forays into<br> cities like Bengaluru and Pune, enhancing their market presence. However,<br> near the end of 2024, external factors such as a major scandal or regulatory<br> issues might have contributed to a temporary decline in share price despite<br> the overall positive trend.<br><br>In summary, Mamaearth's stock volatility stems from internal inconsistencies<br> and external controversies, while Zomato's upward trajectory is driven by<br> successful market expansion with minor setbacks due to external events.
最終出力から見られるように、エージェントシステムは、都市への進出などの十分な推論、Zomatoの株価の上昇傾向の背後にある事業運営の拡大のような十分な理由で、株価チャートからの株価行動の非常に良い分析と比較を与えました。
2024年のJubilant Food Works&Bikaji Foods International Ltd.の株価チャートの株価行動を確認して比較してみましょう。
text = create_crew("https://s3.tradingview.com/p/PuKVGTNm_mid.png","https://images.cnbctv18.com/uploads/2024/12/bikaji-dec12-2024-12-b639f48761fab044197b144a2f9be099.jpg?im=Resize,width=360,aspect=fit,type=normal")
print(text)
結論
The stock behavior of Jubilant Foodworks and Bikaji can be compared based on<br> their recent updates and patterns observed in their stock charts.<br><br>Jubilant Foodworks:<br><br>Cup & Handle Pattern: This pattern is typically bullish, indicating that the<br> buyers have taken control after a price decline. It suggests potential<br> upside as the candlestick formation may signal a reversal or strengthening<br> buy interest.<br><br>Breakout Point: The horizontal dashed line marking the breakout point implies<br> that the stock has reached a resistance level and may now test higher<br> prices. This is a positive sign for bulls, as it shows strength in the<br> upward movement.<br><br>Trend Line Trend: The uptrend indicated by the trend line suggests ongoing<br> bullish sentiment. The price consistently moves upwards along this line,<br> reinforcing the idea of sustained growth.<br><br>Volume Correlation: Volume bars at the bottom showing correlation with price<br> movements indicate that trading volume is increasing alongside upward price<br> action. This is favorable for buyers as it shows more support and stronger<br> interest in buying.<br><br>Bikaji:<br><br>Recent Price Change: The stock has shown a +4.80% change, indicating positive<br> momentum in the short term.<br><br>Year-to-Date Performance: Over the past year, the stock has increased by<br> 61.42%, which is significant and suggests strong growth potential. This<br> performance could be attributed to various factors such as market<br> conditions, company fundamentals, or strategic initiatives.<br><br>Time Frame: The time axis spans from January to December 2024, providing a<br> clear view of the stock's performance over the next year.<br><br>Comparison:<br><br>Both companies' stocks are showing upward trends, but Jubilant Foodworks has<br> a more specific bullish pattern (Cup & Handle) that supports its current<br> movement. Bikaji, on the other hand, has demonstrated strong growth over the<br> past year and continues to show positive momentum with a recent price<br> increase. The volume in Jubilant Foodworks correlates well with upward<br> movements, indicating strong buying interest, while Bikaji's performance<br> suggests sustained or accelerated growth.<br><br>The stock behavior reflects different strengths: Jubilant Foodworks benefits<br> from a clear bullish pattern and strong support levels, whereas Bikaji<br> stands out with its year-to-date growth. Both indicate positive<br> developments, but the contexts and patterns differ slightly based on their<br> respective market positions and dynamics.
結論として、マルチモーダルエージェントフレームワークは、リアルタイムの意思決定を改善するために多様なデータ型をブレンドすることにより、AIの変革的シフトをマークします。これらのシステムは、高度な画像分析とエージェント機能を統合することにより、適応インテリジェンスを強化します。その結果、さまざまな分野で効率と精度を最適化します。乗組員AI Vision ToolとDeepSeek R1モデルは、そのようなフレームワークが在庫行動の分析など、洗練されたアプリケーションをどのように有効にするかを示しています。この進歩は、革新を促進し、意思決定の改善におけるAIの役割の高まりを強調しています。キーテイクアウト
q1。 ai?
以上が在庫の洞察のためにマルチモーダルエージェントシステムを構築する方法は?の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。