Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dmiseev/chatgpt-retrieval-js


https://github.com/dmiseev/chatgpt-retrieval-js

javascript langchain openai

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# chatgpt-retrieval-js

A simple script that enables you to use ChatGPT with your own files for question-answering tasks.

## Installation

```
npm install
```
Modify `.env.dist` to use your own [OpenAI API key](https://platform.openai.com/account/api-keys), and rename it to `.env`.

Place your own files (`.txt`, `.csv`, `.json`, `.md`) in the `data/` folder.

## Example usage

To start the script, run the following command:

```
> npm run start
```

Feel free to customize and enhance the code to suit your specific use-case and data requirements. Happy ChatGPT interaction!