Basic Information

appmixer.perplexity.sonar.PerformSearch

Perform Search

1.0.0

Public

Generates a model's response for the given chat conversation.

Input Ports

in

FieldTypeDescription
Instructions textarea The system instructions that the assistant uses. For example 'Be precise and concise.'
Search Prompt textarea The text input that the model will use to generate a response.
Model select The name of the model that will complete your prompt.
Conversation ID text The unique identifier for the conversation. If provided, the model's response will be saved and used to continue the conversation in subsequent prompts with the same ID. If not provided, a new conversation will be started each time, and previous responses will not be fetched.
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. The default value is 1.
Max Tokens number The maximum number of completion tokens returned by the API. The 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 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. The default value is 0.
Search Domains text 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. Only available to usage Tiers 3 and upwards.
Ignore Domains text A comma-separated list of up to 3 domain identifiers which should be ignored from the search. Currently limited to only 3 domains for whitelisting and blacklisting. Only available to usage Tiers 3 and upwards.
Temperature number Controls the randomness of the model. Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive. Higher values will give more creative results. The default value is 0.2.
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. The default value is 0.
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. The default value is 0.9.

Output Ports

out

FieldTypeDescription
ID -
Model -
Created Timestamp -
Prompt Tokens -
Completion Tokens -
Total Tokens -
Citations -
Finish Reason -
Result -

Full Metadata