Comparing LlamaIndex Query Engines with Arize Phoenix Setup
I have two llamaindex query engines that I want to view as two different projects or metadata tags two compare the retrieved results how can I achieve this:
# setup Arize Phoenix for logging/observability
import llama_index.core
import os
PHOENIX_API_KEY = os.getenv("PHOENIX_API_KEY")
os.environ["OTEL_EXPORTER_OTLP_HEADERS"] = f"api_key={PHOENIX_API_KEY}"
llama_index.core.set_global_handler(
"arize_phoenix", endpoint="https://llamatrace.com/v1/traces"
)
``` query_engine = MultimodalQueryEngine( retriever=index.as_retriever(similarity_top_k=3), multi_modal_llm=azure_openai_mm_llm, ) baseline_query_engine = MultimodalQueryEngine( retriever=baseline_index.as_retriever(similarity_top_k=3), multi_modal_llm=azure_openai_mm_llm, )
