palantir_models
provides a set of classes to be used in Python transforms.
Class | Description |
---|---|
OpenAiGptChatLanguageModelInput | A FoundryInputParam which binds to the OpenAiGptChatLanguageModel API from language model service. Use in a Python transforms decorator. |
GenericCompletionLanguageModelInput | A FoundryInputParam which binds to the GenericCompletionLanguageModel API from language model service. Use in a Python transforms decorator. |
GenericEmbeddingModelInput | A FoundryInputParam which exposes the GenericEmbeddingsModel API from language model service. Use in a Python transforms decorator. |
OpenAiGptChatLanguageModel | Provides a client to an OpenAI chat completion model. |
GenericCompletionLanguageModel | Provides a client to execute any chat completion model available in AIP. |
GenericEmbeddingModel | Provides a client to execute any embedding model available in AIP. |
OpenAiGptChatLanguageModelInput
class palantir_models.transforms.OpenAiGptChatLanguageModelInput
(rid)
rid
GenericCompletionLanguageModelInput
class palantir_models.transforms.GenericCompletionLanguageModelInput
(rid)
rid
GenericEmbeddingModelInput
class palantir_models.transforms.GenericEmbeddingModelInput
(rid)
rid
OpenAiGptChatLanguageModel
class palantir_models.models.OpenAiGptChatLanguageModel
create_chat_completion(completion_request)
language_model_service_api.languagemodelservice_api_completion_v3.GptChatCompletionRequest
language_model_service_api.languagemodelservice_api_completion_v3.GptChatCompletionResponse
GenericCompletionLanguageModel
class palantir_models.models.GenericCompletionLanguageModel
create_completion(completion_request)
language_model_service_api.languagemodelservice_api_completion_v3.GenericCompletionRequest
language_model_service_api.languagemodelservice_api_completion_v3.GenericCompletionResponse
GenericEmbeddingModel
class palantir_models.models.GenericEmbeddingModel
create_embeddings(embeddings_request)
embeddings_request
language_model_service_api.languagemodelservice_api_embeddings_v3.GenericEmbeddingsRequest
language_model_service_api.languagemodelservice_api_embeddings_v3.GenericEmbeddingsResponse