Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dmiseev/chatgpt-retrieval-js
- Owner: dmiseev
- License: mit
- Created: 2023-07-26T15:41:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-02T10:35:57.000Z (about 1 year ago)
- Last Synced: 2023-11-03T10:39:06.397Z (about 1 year ago)
- Topics: javascript, langchain, openai
- Language: JavaScript
- Homepage:
- Size: 142 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!