Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eliahkagan/bedj
Text embeddings via OpenAI - a few Java examples
https://github.com/eliahkagan/bedj
Last synced: about 24 hours ago
JSON representation
Text embeddings via OpenAI - a few Java examples
- Host: GitHub
- URL: https://github.com/eliahkagan/bedj
- Owner: EliahKagan
- License: 0bsd
- Created: 2023-01-23T09:44:16.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-06T05:02:37.000Z (6 months ago)
- Last Synced: 2024-05-06T06:23:48.313Z (6 months ago)
- Language: Java
- Size: 52.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Text embeddings via OpenAI - a few Java examples
These are some examples of embeddings using OpenAI models.
Examples are here because I find each to be of some interest, but this is not
intended as a tutorial for how to use embeddings.For instructive examples, see the official OpenAI repository
[**openai-cookbook**](https://github.com/openai/openai-cookbook).This repository, *bedj*, is like [*bed*](https://github.com/EliahKagan/bed),
but this is in Java and less extensive.## License
[0BSD](https://spdx.org/licenses/0BSD.html). See [**`LICENSE`**](LICENSE).
## Notes
The code is in
[`Main.java`](src/main/java/io/github/eliahkagan/bedj/Main.java).It is written to assume your API key is in a file called `.api_key`. Do not
commit it to Git! The `.gitignore` file excludes it, to help avoid that.