Arize phoenix query engine
ArizePhoenixQueryEnginePack #
Bases: BaseLlamaPack
The Arize-Phoenix LlamaPack show how to instrument your LlamaIndex query engine with tracing. It launches Phoenix in the background, builds an index over an input list of nodes, and instantiates and instruments a query engine over that index so that trace data from each query is sent to Phoenix.
Note: Using this LlamaPack requires that your OpenAI API key is set via the OPENAI_API_KEY environment variable.
Source code in llama-index-packs/llama-index-packs-arize-phoenix-query-engine/llama_index/packs/arize_phoenix_query_engine/base.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|
get_modules #
get_modules() -> Dict[str, Any]
Returns a dictionary containing the internals of the LlamaPack.
Returns:
Type | Description |
---|---|
Dict[str, Any]
|
Dict[str, Any]: A dictionary containing the internals of the |
Dict[str, Any]
|
LlamaPack. |
Source code in llama-index-packs/llama-index-packs-arize-phoenix-query-engine/llama_index/packs/arize_phoenix_query_engine/base.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
run #
run(*args: Any, **kwargs: Any) -> Any
Runs queries against the index.
Returns:
Name | Type | Description |
---|---|---|
Any |
Any
|
A response from the query engine. |
Source code in llama-index-packs/llama-index-packs-arize-phoenix-query-engine/llama_index/packs/arize_phoenix_query_engine/base.py
66 67 68 69 70 71 72 73 |
|