Arize-ai / phoenix

AI Observability & Evaluation
https://docs.arize.com/phoenix
Other
3.44k stars 254 forks source link

[ENHANCEMENT] add support for vertexai to langchain google palm tracing tutorial #1231

Closed axiomofjoy closed 12 months ago

axiomofjoy commented 1 year ago

Goal

Show how to instrument a LangChain LLM application using the VertexAI API and Phoenix tracing.

Context

Google serves its LLMs (such as text-bison, a.k.a. PaLM2) and embedding models (such as text-gecko) via two APIs:

The LangChain Google PaLM tracing tutorial currently builds a simple RAG application using LangChain LLM and embedding implementations that call out to the PaLM API. We should enhance the notebook to be configurable so that the user of the notebook can choose between the APIs.

Requirements

Relevant Components

Other Resources

Here is an existing notebook using the VertexAI API for reference:

axiomofjoy commented 12 months ago

Created a separate tutorial notebook instead.