Add quarkus-vs-spring-ai module: the same support assistant (system prompt, tool, RAG) built with Quarkus LangChain4j and Spring AI against a stub OpenAI-compatible server, with wire-format capture, startup/memory benchmarks and a Quarkus native image
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4XrpfdpsacrvqnrBM
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
f4f90b3b30
commit
5e5326c810
@@ -0,0 +1,33 @@
|
||||
##### quarkus: 3 chat requests for 2 questions
|
||||
--- request 1: top-level keys = ['frequency_penalty', 'messages', 'model', 'presence_penalty', 'tools']
|
||||
[system] 'You are the support assistant of an online electronics shop. Answer in one sentence. Use the order tool for or'
|
||||
[user] 'Where is my order 1001?'
|
||||
tools: [{"function": {"description": "Looks up the delivery status of a customer order by its order number", "name": "orderStatus", "parameters": {"properties": {"orderId": {"description": "the numeric order number, for example 1001", "type": "string"}}, "required": ["orderId"], "type": "object"}}, "type": "function"}]
|
||||
--- request 2: top-level keys = ['frequency_penalty', 'messages', 'model', 'presence_penalty', 'tools']
|
||||
[system] 'You are the support assistant of an online electronics shop. Answer in one sentence. Use the order tool for or'
|
||||
[user] 'Where is my order 1001?'
|
||||
[assistant] 'None' tool_calls=[{"id": "call_stub_1", "type": "function", "function": {"name": "orderStatus", "arguments": "{\"orderId\":\"1001\"}"}}]
|
||||
[tool] 'Order 1001 is shipped on 2026-11-20, arriving in 2 days'
|
||||
tools: [{"function": {"description": "Looks up the delivery status of a customer order by its order number", "name": "orderStatus", "parameters": {"properties": {"orderId": {"description": "the numeric order number, for example 1001", "type": "string"}}, "required": ["orderId"], "type": "object"}}, "type": "function"}]
|
||||
--- request 3: top-level keys = ['frequency_penalty', 'messages', 'model', 'presence_penalty', 'tools']
|
||||
[system] 'You are the support assistant of an online electronics shop. Answer in one sentence. Use the order tool for or'
|
||||
[user] 'How many days do I have to return an item?\n\nAnswer using the following information:\nReturns policy: items can '
|
||||
tools: [{"function": {"description": "Looks up the delivery status of a customer order by its order number", "name": "orderStatus", "parameters": {"properties": {"orderId": {"description": "the numeric order number, for example 1001", "type": "string"}}, "required": ["orderId"], "type": "object"}}, "type": "function"}]
|
||||
|
||||
##### spring: 3 chat requests for 2 questions
|
||||
--- request 1: top-level keys = ['messages', 'model', 'tools']
|
||||
[system] 'You are the support assistant of an online electronics shop. Answer in one sentence. Use the order tool for or'
|
||||
[user] 'Where is my order 1001?\n\nContext information is below, surrounded by ---------------------\n\n------------------'
|
||||
tools: [{"function": {"description": "Looks up the delivery status of a customer order by its order number", "name": "orderStatus", "parameters": {"$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": {"orderId": {"description": "the numeric order number, for example 1001", "type": "string"}}, "required": ["orderId"], "type": "object"}, "strict": false}, "type": "function"}]
|
||||
--- request 2: top-level keys = ['messages', 'model', 'tools']
|
||||
[system] 'You are the support assistant of an online electronics shop. Answer in one sentence. Use the order tool for or'
|
||||
[user] 'Where is my order 1001?\n\nContext information is below, surrounded by ---------------------\n\n------------------'
|
||||
[assistant] '' tool_calls=[{"id": "call_stub_1", "function": {"arguments": "{\"orderId\":\"1001\"}", "name": "orderStatus"}, "type": "function"}]
|
||||
[tool] '"Order 1001 is shipped on 2026-11-20, arriving in 2 days"'
|
||||
tools: [{"function": {"description": "Looks up the delivery status of a customer order by its order number", "name": "orderStatus", "parameters": {"$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": {"orderId": {"description": "the numeric order number, for example 1001", "type": "string"}}, "required": ["orderId"], "type": "object"}, "strict": false}, "type": "function"}]
|
||||
--- request 3: top-level keys = ['messages', 'model', 'tools']
|
||||
[system] 'You are the support assistant of an online electronics shop. Answer in one sentence. Use the order tool for or'
|
||||
[user] 'How many days do I have to return an item?\n\nContext information is below, surrounded by ---------------------\n'
|
||||
tools: [{"function": {"description": "Looks up the delivery status of a customer order by its order number", "name": "orderStatus", "parameters": {"$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": {"orderId": {"description": "the numeric order number, for example 1001", "type": "string"}}, "required": ["orderId"], "type": "object"}, "strict": false}, "type": "function"}]
|
||||
|
||||
tool declaration identical: False
|
||||
Reference in New Issue
Block a user