Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fdelporte/langchain4j-javafx-docs-chat
https://github.com/fdelporte/langchain4j-javafx-docs-chat
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/fdelporte/langchain4j-javafx-docs-chat
- Owner: FDelporte
- Created: 2024-02-02T14:46:56.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-08T12:27:26.000Z (9 months ago)
- Last Synced: 2024-05-01T17:28:57.696Z (7 months ago)
- Language: Java
- Size: 1.08 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LangChain4J JavaFX Documentation Chat demo application
This application uses an existing JSON, based on the Azul documentation on [docs.azul.com](https://docs.azul.com), to provide a chat JavaFX user interface.
## Project Setup
* Use a JDK with JavaFX:
```bash
$ sdk install java 21.0.1.fx-zulu
```
* Configure the project in IntelliJIDEA to use this SDK.
* Get an API key from OpenAI and set as environment variable or directly in `ApiKeys.java`.
* Start the main class `ChatApp.java` by hitting run in the IntelliJIDEA.
![](screenshot-run.png)
* Wait until the chat model is ready before asking a question.
![](screenshot-ui.png)