Metadata-Version: 2.1
Name: chatgpt-search
Version: 0.0.4
Summary: package for search with chatgpt in cli
Author-email: Abhijeet Kumar <krabhijeet93@gmail.com>
Project-URL: Homepage, https://github.com/abhijeetkr93/chatgpt-search
Keywords: search
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: openai
Requires-Dist: html2text
Requires-Dist: sgmllib3k
Requires-Dist: tomli
Provides-Extra: dev
Requires-Dist: black ; extra == 'dev'
Requires-Dist: bumpver ; extra == 'dev'
Requires-Dist: isort ; extra == 'dev'
Requires-Dist: pip-tools ; extra == 'dev'
Requires-Dist: pytest ; extra == 'dev'

# 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](https://media.giphy.com/media/hWJGpCAAclpyqyPoeN/giphy.gif)

### Source code
```sh
$ 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`

```sh
$ 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](https://media.giphy.com/media/e09ykfVdv4IDybFhpQ/giphy.gif)

```
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](https://media.giphy.com/media/yZtKPeVHgkYzKt5WgO/giphy.gif)
![coding](https://media.giphy.com/media/WtLlMXD8TZ2CcrLgAs/giphy.gif)
![explain-code](https://media.giphy.com/media/yHBfRBn0IGH6zvuOZd/giphy.gif)

```
Q&A: 
"What is the distance between earth and neptune?"
```
![query](https://media.giphy.com/media/NmpD5uzyLOZxPQq3Qq/giphy.gif)
## 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.

