The Perplexity component is an AI component that allows users to connect the AI models served on the Perplexity Platform.
It can carry out the following tasks:
The component definition and tasks are defined in the definition.yaml and tasks.yaml files respectively.
Setup
In order to communicate with Perplexity, the following connection details need to be
provided. You may specify them directly in a pipeline recipe as key-value pairs
within the component's setup block, or you can create a Connection from
the Integration Settings
page and reference the whole setup as setup: ${connection.<my-connection-id>}.
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
Role
role
string
The message role, i.e. 'system', 'user' or 'assistant'. Enum values
system
user
assistant
Content
The message content.
Field
Field ID
Type
Note
Text Message
text
string
Text message.
Text
type
string
Text content type.
Input Parameter
Input parameter.
Field
Field ID
Type
Note
Frequency Penalty
frequency-penalty
number
A multiplicative penalty greater than 0. Values greater than 1.0 penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. A value of 1.0 means no penalty. Incompatible with presence_penalty.
Max New Tokens
max-tokens
integer
The maximum number of completion tokens returned by the API. The total number of tokens requested in max_tokens plus the number of prompt tokens sent in messages must not exceed the context window token limit of model requested. If left unspecified, then the model will generate tokens until either it reaches its stop token or the end of its context window.
Presence Penalty
presence-penalty
number
A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Incompatible with frequency_penalty.
Search Domain Filter
search-domain-filter
string
Given a list of domains, limit the citations used by the online model to URLs from the specified domains. Currently limited to only 3 domains for whitelisting and blacklisting. For blacklisting add a - to the beginning of the domain string.
Search Recency Filter
search-recency-filter
string
Returns search results within the specified time interval - does not apply to images. Values include month, week, day, hour.
Stream
stream
boolean
If set, partial message deltas will be sent. Tokens will be sent as data-only server-sent events as they become available.
Temperature
temperature
number
The amount of randomness in the response, valued between 0 inclusive and 2 exclusive. Higher values are more random, and lower values are more deterministic.
Top K
top-k
number
The number of tokens to keep for highest top-k filtering, specified as an integer between 0 and 2048 inclusive. If set to 0, top-k filtering is disabled. We recommend either altering top_k or top_p, but not both.
Top P
top-p
number
The nucleus sampling threshold, valued between 0 and 1 inclusive. For each subsequent token, the model considers the results of the tokens with top_p probability mass. We recommend either altering top_k or top_p, but not both.