* reorg pt 1 * nav reorg pt 2 * update sidebar ad * resolve comments and combine app pages * playground and voice mode rewrite * fix link * add separate bundle pages * add new pages to sidebar * working on bundles * moving content to new bundle pages * move some sidebar items * fix build * nav labels * small edits * Working on helpers * core components work * wrapping up some more agent duplication * aligning file management * webhooks and file management * data components * address vector store and some legacy components * finish logic params * some work on processors * remove unneeded pages and tidy some llm info * progress on bundles pt 1 * bundles pt 2 * bundles pt 3 * finish looking at integrations * it is done * fix errors * coderabbit and typos * coderabbit pt 2 * resolving mcs pt 1 * separate agents and mcp * still working on some memory stuff * finish message history alignment * incorporate PR 9138 * missed a link * file management ui * align w ui pr * Apply suggestions from code review * memory edits after discussion
37 lines
No EOL
2 KiB
Text
37 lines
No EOL
2 KiB
Text
---
|
|
title: Perplexity
|
|
slug: /bundles-perplexity
|
|
---
|
|
|
|
import Icon from "@site/src/components/icon";
|
|
|
|
[Bundles](/components-bundle-components) contain custom components that support specific third-party integrations with Langflow.
|
|
|
|
This page describes the components that are available in the **Perplexity** bundle.
|
|
|
|
For more information about Perplexity features and functionality used by Perplexity components, see the [Perplexity documentation](https://perplexity.ai/).
|
|
|
|
## Perplexity text generation
|
|
|
|
This component generates text using Perplexity's language models.
|
|
|
|
It can output either a **Model Response** ([`Message`](/data-types#message)) or a **Language Model** ([`LanguageModel`](/data-types#languagemodel)).
|
|
|
|
Use the **Language Model** output when you want to use a Perplexity model as the LLM for another LLM-driven component, such as a **Language Model** or **Smart Function** component.
|
|
|
|
For more information, see [**Language Model** components](/components-models).
|
|
|
|
### Perplexity text generation parameters
|
|
|
|
Many **Perplexity** component input parameters are hidden by default in the visual editor.
|
|
You can toggle parameters through the <Icon name="SlidersHorizontal" aria-hidden="true"/> **Controls** in the [component's header menu](/concepts-components#component-menus).
|
|
|
|
| Name | Type | Description |
|
|
|------|------|-------------|
|
|
| model_name | String | Input parameter. The name of the Perplexity model to use. Options include various Llama 3.1 models. |
|
|
| max_output_tokens | Integer | Input parameter. The maximum number of tokens to generate. |
|
|
| api_key | SecretString | Input parameter. The Perplexity API Key for authentication. |
|
|
| temperature | Float | Input parameter. Controls randomness in the output. Default: 0.75. |
|
|
| top_p | Float | Input parameter. The maximum cumulative probability of tokens to consider when sampling (advanced). |
|
|
| n | Integer | Input parameter. Number of chat completions to generate for each prompt (advanced). |
|
|
| top_k | Integer | Input parameter. Number of top tokens to consider for top-k sampling. Must be positive (advanced). | |