perplexityai

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i perplexityai

Weekly Downloads

7

Version

1.0.1

License

ISC

Unpacked Size

4.14 kB

Total Files

4

Last publish

Collaborators

  • lcruga