Skip to content

rueedlinger/rest-llm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rest-llm (Quarkus + Kotlin + LangChain4j)

This is a dummy project setup for building a REST API for LLMs using Quarkus/Kotlin and LangChain4j.

Prerequisites

  • Java 17
  • Maven 3.8.6
  • Docker
  • Ollama

Running the Application

To run the application, you need to have Ollama installed and running. You can pull the model using the following command:

ollama pull llama3.2
ollama run llama3.2 

Then, run the application with:

mvn clean package 
mvn -pl api quarkus:dev

API Documentation

http://localhost:8080/q/swagger-ui/

curl -X 'POST' \
  'http://localhost:8080/api/llm/input' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "prompt": "What is the capital of France?"
}'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages