Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hallatore/gpt-experiments
GPT-Experiments is a set of sample experiments to showcase different ways you can use GPT.
https://github.com/hallatore/gpt-experiments
Last synced: about 1 month ago
JSON representation
GPT-Experiments is a set of sample experiments to showcase different ways you can use GPT.
- Host: GitHub
- URL: https://github.com/hallatore/gpt-experiments
- Owner: hallatore
- License: mit
- Created: 2023-08-16T16:32:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-18T16:56:56.000Z (over 1 year ago)
- Last Synced: 2024-10-29T18:37:35.472Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
GPT-Experiments is a set of sample experiments to showcase different ways you can use GPT. The code is written in js/typescript.
# Setup
## Installation
```
npm install
```Create an .env file with the following content
```
OPENAI_API_KEY=
OPENAI_MODEL=gpt-3.5-turbo
```You can get your api-key from https://platform.openai.com/account/api-keys
## Running the experiments
Run `npm start` and select which experiment you want to run.
# Experiments
## Basic
### [Hello gpt](./experiments/basic/hello-gpt/Readme.md)
Sends `Hello, I am a human.` to gpt and prints the response to the console.
### [Chat without history](./experiments/basic/chat-without-history/Readme.md)
Takes user input from terminal and sends it to gpt. Prints the respons in the terminal.
### [Chat with history](./experiments/basic/chat-with-history/Readme.md)
Takes user input from terminal and sends it to gpt. Prints the respons in the terminal.
### [Translate](./experiments/basic/translate/Readme.md)
Takes user input from terminal and translates it to Swedish, French, and German.
### [Vector search](./experiments/basic/vector-search/Readme.md)
Takes user input from terminal and does a similarity search on a faq dataset and return top 3 results.
### [Vector search with GPT](./experiments/basic/vector-search-with-gpt/Readme.md)
Takes user input from terminal and does a similarity search on a faq dataset. Then it uses GPT to do a final filtering of the results.
## Intermidiate
...
## Advanced
...
# How to contribute
1. Create a experiments folder with your code. See experiments/basic/hello-gpt for a starting point.
2. Add it to the list in [index.ts](./index.ts)
3. Add it to the list in this readme
4. Create a pull request on GitHub with your changes.PS: https://platform.openai.com/playground is great for prototyping GPT logic!