Giter Site home page Giter Site logo

chatgpt-search's Introduction

chatgpt-search package for quick CLI search

chatgpt-search pypi is a simple integration of openAI chatGPT-3.0 models like (text-davinci-003, code-davinci-002, text-curie-001, text-babbage-001, text-ada-001 etc.) with python to feed your queries answers in terminal.

Tips: update models.toml for tuning models based on your need and use-cases.

Installation

From Pypi

$ pip install chatgpt-search

installpackage

Source code

$ pipenv --python 3.9.13
$ pipenv shell
$ git clone https://github.com/abhijeetkr93/chatgpt-search.git

Setup

set env 'CHATGPT_KEY' for api queries. get free api key by signing up here https://beta.openai.com/signup

$ export CHATGPT_KEY='XXXXXXXXXXXXX'
$ python -m search
Ask Anything (type exit to close):

source code: $ python src/search/main.py

Start Playing

Text Completion: 
"write short story about colonisation."

writestory

Coding Queries:
"How do you implement a bucket sort algorithm?"
"How to convert list of dicts in dict of lists in python?"
"Explain 'const groupsData = await this.getMasterGroup(this.masterGroupName, this.userData.company);'

bucket-sort coding explain-code

Q&A: 
"What is the distance between earth and neptune?"

query

License

Distributed under the MIT License. See LICENSE for more information.

Disclaimer

This is a personal project, not affiliated in any way with OpenAI. If you have any objections, contact @abhijeetkr93.

chatgpt-search's People

Contributors

abhijeetkr93 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

krsanjiet

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.