https://github.com/purplelemons-dev/vec-playground
https://github.com/purplelemons-dev/vec-playground
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/purplelemons-dev/vec-playground
- Owner: purplelemons-dev
- License: gpl-3.0
- Created: 2024-02-18T18:45:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-19T05:37:40.000Z (over 2 years ago)
- Last Synced: 2025-03-02T02:37:44.282Z (over 1 year ago)
- Language: Python
- Size: 208 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vec-Playground
install with
```bash
git clone https://github.com/purplelemons-dev/vec-playground.git
```
after that, you need to get the `word:vec` dictionary, which can either be generated or downloaded. The vectors are *PRE-NORMALIZED*, so you don't need to normalize them yourself.
## Generating the wordlist
* Slow internet
* OpenAI API key
If you would like to generate the wordlist for yourself, use:
```bash
cd vec-playground
pip install --upgrade openai
echo "" > resources/api_key
echo "" > resources/org_id
python gen_vecs.py
```
## Downloading the wordlist
* Fast internet
* Don't want to pay for OpenAI API
otherwise, you can download it (~1.7GB) from `https://purplelemons.s3.amazonaws.com/wordlist.plk` (NOTE: DO NOT OPEN IN BROWSER, YOU'RE GONNA NUKE YOUR PC).
place the `wordlist.plk` file in the `resources` directory.