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:
asmhatre
2026-11-27 00:08:03 +05:30
co-authored by Claude Sonnet 5.5
parent f4f90b3b30
commit 5e5326c810
46 changed files with 1395 additions and 0 deletions
@@ -0,0 +1,28 @@
#!/usr/bin/env python3
"""Summarises the recorded chat requests of both apps: shape, tool declaration, and prompt text."""
import glob, json, sys
root = sys.argv[1]
def load(side):
return [json.load(open(f)) for f in sorted(glob.glob(f"{root}/{side}/*-chat.json"))]
def show(side, reqs):
print(f"##### {side}: {len(reqs)} chat requests for 2 questions")
for i, r in enumerate(reqs, 1):
print(f"--- request {i}: top-level keys = {sorted(r)}")
for m in r["messages"]:
c = m.get("content")
if isinstance(c, list):
c = "".join(p.get("text", "") for p in c)
extra = f" tool_calls={json.dumps(m['tool_calls'])}" if m.get("tool_calls") else ""
print(f" [{m['role']}] {str(c)[:110]!r}{extra}")
if r.get("tools"):
print(" tools:", json.dumps(r["tools"], sort_keys=True))
print()
q, s = load("quarkus"), load("spring")
show("quarkus", q)
show("spring", s)
qt = [r["tools"] for r in q if r.get("tools")][0]
st = [r["tools"] for r in s if r.get("tools")][0]
print("tool declaration identical:", qt == st)