-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENHANCEMENT] Use Phoenix to run Evals using Internal Hosted LLMs #2280
Comments
🤖 That sounds like a great enhancement request for the Arize Phoenix software! It's fantastic that you've already put thought into the solution and provided an example implementation of a
|
Discussed with @amank94 about a few different strategies:
|
I think LiteLLMModel with model_kwargs or just with os.env is a way to go. If anyone would like to have #2423 extended with OpenAI API example I can add it. |
) * demonstrate using selfhosted ollama as Eval Model. #2280 * openAI mock test * sweep * move, rename * imports
Marking this as resolved via lightLLM for now |
Is your feature request related to a problem? Please describe.
My organization manages and runs our own LLMs and serves them internally with a custom API. We would like to use Phoenix to run Evals using our internal LLMs.
Describe the solution you'd like
I'd like a higher level interface or abstract class I can inherit from to implement a Phoenix BaseEvalModel when using my own internally-hosted LLM that is served via a REST API. I would like to implement only two methods: one to set up an
httpx
client configured to send requests to a specific endpoint and a second to parse the response to an LLM output string.The resulting class should be a fully Phoenix-compatible BaseEvalModel that I can use with all evals features and built-in prompt templates.
Describe alternatives you've considered
Example curl command below conforming to OpenAI completions endpoint
We may also pass additional headers i.e. ‘Context-Name’
An example implementation of a
BaseEvalClass
can be seen in the code example belowThe text was updated successfully, but these errors were encountered: