Skip to content

alexcg1/semantle-docarray

Repository files navigation

Semantle-DocArray

This is a simple game that leverages DocArray v2 and the OpenAI embeddings API, similar to Semantle.

How do I play?

  1. pip install -r requirements.txt
  2. Set your OPENAPI_API_KEY environment variable.
  3. python game.py
  4. A target word will be chosen from the top 10,000 words in English.
  5. Your task is to guess the target. You'll be given an input field.
  6. If you get it wrong, you'll see how close your guess is. Hot is closer, cold is further.
  7. When you guess correctly you win the game.

Tips

  • To get a hint, type /hint and GPT will generate a hint for you.
  • To get the answer, type /answer.
  • To exit, type /exit or /quit.

FAQ

What similarity metric do you use?

Cosine similarity

TODO

  • Hints

About

Semantle in DocArray and GPT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages