Coder Social home page Coder Social logo

japelsin / pplx Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 29 KB

Online search from your terminal using Perplexity AI

License: MIT License

Go 100.00%
cli language-model perplexity perplexity-ai perplexity-api search chatbot pplx chatgpt mistral pplx-ai codellama go sonar-medium-chat sonar-medium-online sonar-small-chat sonar-small-online

pplx's Introduction

Perplexity CLI

Go License

CLI for searching with Perplexity's API. Can also be used as a chatbot.

Prerequisites

  • Perplexity account and API key. You'll be prompted for the API key the first time you run pplx.

Installation

brew install japelsin/tap/pplx

From source

If you have go installed:

go install github.com/japelsin/pplx@latest

You could also grab the appropriate executable from releases.

Usage

Search

Search command. Most parameters allowed by pplx-api are available as options. The model is set through the config (see below).

Usage:
  pplx search [flags]

Flags:
  -f, --frequency_penalty float   Token frequency penalty [0, 1.0]
  -l, --max_tokens int            Token limit per request (default 1000)
  -m, --model string              Model to use (default "sonar-small-online")
  -p, --presence_penalty float    Token presence penalty [-2.0, 2.0]
  -q, --query string              Your query
  -t, --temperature float         Response randomness [0, 2.0]
  -K, --top_k int                 Number of tokens to sample from [0, 2048]
  -P, --top_p float               Probability cutoff for token selection [0, 1.0]

The API reference can be found here.

Config

Usage:
  pplx config [command]

Available Commands:
  path        Get configuration file path
  reset       Reset config
  set         Set config value

pplx's People

Contributors

japelsin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.