以åArize Phoenixã使ã£ã¦ãããã¾ããã
ãããªArize Phoenixã§ãããã©ãããLlamaCloudã§LlamaTraceã¨ããååã§ä½¿ããããã«ãªã£ã¦ãããããã§ãã
Weâre excited to feature LlamaTrace - a collaborative effort with @arizeai to introduce advanced LLM tracing, observability, and evaluation for any LLM application workflows ð¦ð¥
— LlamaIndex ð¦ (@llama_index) 2024å¹´7æ11æ¥
There are of course many great tools for LLM tracing/evals, and we have great integrations with many⦠pic.twitter.com/tjd93G8YK6
ã¨ãããã¨ã§ä½¿ã£ã¦ã¿ããã¨æãã¾ãã
LlamaTrace
ãµã¼ãã¹ã®ãµã¤ãã¯ãããªæãã§ãã
ã¢ã«ã¦ã³ãä½ãã°ãã¨ã¯SaaSã¨ãã¦ä½¿ããArize Phoenixã§ãã
æé
ãµã¼ãã¹ãã¼ã¸å ãæ¢ãã¦ã¿ã¾ãããæéã«é¢ããè¨è¼ããªãã®ã§ã¯ã£ãããããã¨ã¯ãããã¾ããã§ããã
ä¸å¿Arizeã®æ¹ã®Pricingãè¦ãéãå人ã§ä½¿ãåã«ã¯ç¡æã£ã½ãã§ãã è¤æ°äººã§å©ç¨ããéã«ã¯ã¡ãã£ã¨ã©ã®æéã«ãªãã®ãã¯ä¸æã§ãã
èªåã¯åºæ¬å人ã§ãã使ããªãã®ã§å¥ã«è¯ããã§ãããå©ç¨ãããæ¹ã¯ãæ°ãã¤ããã ããã
è¯ãã¨ãã
å人çã«ã¯LlamaIndexã使ãã¨ãç¾ç¶LangSmithã使ããªãã®ã§ããã®ä»£ç¨ã¨ãã¦ã¯æªãé¸æè¢ã§ã¯ãªãã¨æã£ã¦ã¾ãã Arize Phenixèªä½ã¯å人çã«ä½¿ãåæãè¯ãã¨æãã¦ã¾ãããLlamaIndexã使ãã¨ãã®LLMOpsãã¼ã«ã¨ãã£ãæãã§ããããã
åºæ¬çã«ã¯æ°è¡æ¸ãã ãã§åæã«ãã°ãè¨é²ããã¦ããã®ã§ãRAGé¢é£ã®å®é¨çµæã®ä¿åã»ç®¡çãã¾ãã£ã¨ãã¾ããã§ããç¹ãè¯ãã§ãã Arize Phoenixã¨éã£ã¦SaaSãªã®ã§ãã¼ã¿ãæ¶ããå¿é ãåºæ¬çã«ã¯ããã¾ããããããããæå³ã§æ軽ã«ä½¿ããç¹ã¯è¯ããã¤ã³ãã§ããã ï¼LangFuseã§ãè¯ãã¨è¨ãããã¨ãªã«ãè¨ãã¾ãããï¼
使ã£ã¦ã¿ã
ãã¦å®éã«ä½¿ã£ã¦ã¿ã¾ãã
åènotebook
ãã¾ãã¡ããã¨ããããã¥ã¡ã³ããããããã§ã¯ãªãã®ã§ããã®ã¸ãã®notebookãåèã«ãã¦ä½¿ãã®ã楽ããã§ãã
API
ãµã¼ãã¹ç»é¢ä¸ã«APIã®ãã¼ã¸ãããã®ã§ãããã§Keyãåå¾ãã¾ãã
å®éã«ä½¿ãã®ã¯
"api_key="
ã®å¾ãã«API_KEYãã¤ãªãã¦ä½¿ãã¾ãã(ç°å¢å¤æ°ã®OTEL_EXPORTER_OTLP_HEADERS
ã«è¨å®ãã)
ãããã¨
ãã¼ã«ã¨ãã¦ã¯ãã®ã¸ããã¤ã³ã¹ãã¼ã«ãã¾ãã
!pip install -q llama-index-callbacks-arize-phoenix
ã³ã¼ãã¨ãã¦ã¯ãããªæãã§API_KEYãè¨å®ããã¨ããã¨ã¯æ®éã«ä½¿ãã ãã§ä¿åããã¾ãã
# setup Arize Phoenix for logging/observability import llama_index.core import os os.environ["OTEL_EXPORTER_OTLP_HEADERS"] = userdata.get('OTEL_EXPORTER_OTLP_HEADERS') llama_index.core.set_global_handler( "arize_phoenix", endpoint="https://llamatrace.com/v1/traces" )
ãã¨ã¯æ®éã«å®è¡ããã¨ãã£ã¦ã«Traceããã¦ããã¾ãã
åºåç»é¢
ç»é¢ã¯Arize Phoenixã¨åãã§ããã ããããããªããããã³ãããã©ããªã£ã¦ãããæ¤ç´¢ãããcontextãã©ããªã£ã¦ããã確èªãããã¨ãã§ãã¾ãã
使ã£ãã³ã¼ã
ãããªæãã§æ¸ãã¦ã¿ã¾ããã
ããã¾ããããªãã£ããã¨
ããã¸ã§ã¯ããã©ããã£ã¦åããã®ããè¯ãåãããªãã£ãã§ãã èªåã®å ´åã¯RAGã®å®è£ ã®ãã¼ã¸ã§ã³ãããã¸ã§ã¯ããä½ãã§åãã¦çµæãä¿åããããªããã§ããããã®ããæ¹ããã¾ãã¡åãããªãã£ãã§ãã
ããæ¹åãã人ããããã£ããæãã¦ä¸ããâ¦
åèæç®
ä¸è¨ã®æç®ãåèã«ããã¦ããã ãã¾ããã
ææ³
ã²ã¨ã¾ãLlamaTraceã使ã£ã¦ã¿ã¾ããã 使ãã ããªãç°¡åãªãã§ã±ã£ã¨ä½¿ãã«ã¯è¯ããªã¨æãã¤ã¤ãããã¥ã¡ã³ããæ´åããã¦ãªãã ããªã®ãã¡ãã£ã¨ã¾ã 使ãã«ããæãã§ããã
ããã¡ãã£ã¨ä½¿ãæ¹ããããã°ä½¿ãåæãæªããã¼ã«ã§ã¯ãªããããªã®ã§ãç°å¢æ´åããããåãã£ã¬ã³ã¸ãããã¨æãã¾ãã