🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

perplexityai

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

perplexityai

Perplexity AI is an answer engine that delivers accurate answers to complex questions using large language models. It is an unofficial implementation of the [PerplexityAI](https://www.perplexity.ai/) site to be able to use easily and quickly

1.0.1
latest
Source
npm
Version published
Maintainers
1
Created
Source

PerplexityAI

Perplexity AI is an answer engine that delivers accurate answers to complex questions using large language models. It is an unofficial implementation of the PerplexityAI site to be able to use easily and quickly

Installation

Install this project with npm

  npm install --save perplexityai

Demo

Example of an search

const PerplexityAI = require('perplexityai');

const main = async() => {
  const prompt = 'cuál es la última polemica de elon musk?';
  const response = await PerplexityAI.search(prompt);
  console.log('response', response);
}

main();

OUTPUTS

{
  concise: '',
  detailed: '',
  sources: [
    {
      name: '',
      url: ''
    },
    {
      name: '',
      url: ''
    },
    ....
  ]
}

Authors

  • @luiscruzga

FAQs

Package last updated on 26 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts