{"id":17984370,"url":"https://github.com/hallatore/gpt-experiments","last_synced_at":"2026-07-06T05:31:39.345Z","repository":{"id":188790292,"uuid":"679350145","full_name":"hallatore/gpt-experiments","owner":"hallatore","description":"GPT-Experiments is a set of sample experiments to showcase different ways you can use GPT.","archived":false,"fork":false,"pushed_at":"2023-08-18T16:56:56.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T10:02:28.223Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hallatore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-16T16:32:21.000Z","updated_at":"2023-08-17T09:55:27.000Z","dependencies_parsed_at":"2024-10-29T18:50:46.928Z","dependency_job_id":null,"html_url":"https://github.com/hallatore/gpt-experiments","commit_stats":null,"previous_names":["hallatore/gpt-experiments"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hallatore/gpt-experiments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hallatore%2Fgpt-experiments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hallatore%2Fgpt-experiments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hallatore%2Fgpt-experiments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hallatore%2Fgpt-experiments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hallatore","download_url":"https://codeload.github.com/hallatore/gpt-experiments/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hallatore%2Fgpt-experiments/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35179683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T18:21:02.942Z","updated_at":"2026-07-06T05:31:39.327Z","avatar_url":"https://github.com/hallatore.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"GPT-Experiments is a set of sample experiments to showcase different ways you can use GPT. The code is written in js/typescript.\n\n# Setup\n\n## Installation\n\n```\nnpm install\n```\n\nCreate an .env file with the following content\n\n```\nOPENAI_API_KEY=\u003cAPI-KEY\u003e\nOPENAI_MODEL=gpt-3.5-turbo\n```\n\nYou can get your api-key from https://platform.openai.com/account/api-keys\n\n## Running the experiments\n\nRun `npm start` and select which experiment you want to run.\n\n# Experiments\n\n## Basic\n\n### [Hello gpt](./experiments/basic/hello-gpt/Readme.md)\n\nSends `Hello, I am a human.` to gpt and prints the response to the console.\n\n### [Chat without history](./experiments/basic/chat-without-history/Readme.md)\n\nTakes user input from terminal and sends it to gpt. Prints the respons in the terminal.\n\n### [Chat with history](./experiments/basic/chat-with-history/Readme.md)\n\nTakes user input from terminal and sends it to gpt. Prints the respons in the terminal.\n\n### [Translate](./experiments/basic/translate/Readme.md)\n\nTakes user input from terminal and translates it to Swedish, French, and German.\n\n### [Vector search](./experiments/basic/vector-search/Readme.md)\n\nTakes user input from terminal and does a similarity search on a faq dataset and return top 3 results.\n\n### [Vector search with GPT](./experiments/basic/vector-search-with-gpt/Readme.md)\n\nTakes 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.\n\n## Intermidiate\n\n...\n\n## Advanced\n\n...\n\n# How to contribute\n\n1. Create a experiments folder with your code. See experiments/basic/hello-gpt for a starting point.\n2. Add it to the list in [index.ts](./index.ts)\n3. Add it to the list in this readme\n4. Create a pull request on GitHub with your changes.\n\nPS: https://platform.openai.com/playground is great for prototyping GPT logic!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhallatore%2Fgpt-experiments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhallatore%2Fgpt-experiments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhallatore%2Fgpt-experiments/lists"}