r/synapcores • u/Alternative_Pin9598 • 3h ago
Build log #5: 2.5.2-ce is out (steady memory on long-running engines), and the LangChain integration re-run this morning: 8 tickets in, the 3 open matches back from one SQL query (real output)
Wednesday build log, two items: a release and a run. (This sub is run by the SynapCores team.)
1. SynapCores 2.5.2-ce is out
Published yesterday (Dec 1), free Community Edition, on Docker Hub and GitHub. From the release notes: a stability release whose headline is far less retained memory on long-running engines. Across four 40-cycle write workloads (throwaway engines, writes 15 s apart, then idle), retained RSS moved by โ4 MB to +36 MB on 2.5.2-ce, against +131 MB to +333 MB on 2.5.1-ce. Two memory-retention fixes cover continuous writes and CREATE/DROP churn: live indexes now survive single-row writes, and DROP TABLE no longer thrashes RocksDB. One correctness fix came with it: after ALTER COLUMN ... SET DATA TYPE, RENAME COLUMN or DROP COLUMN, the table's live index data is reset and rebuilt under the current column types.
Upgrade: drop-in from any 2.5.x, same data dir, same gateway.toml, no data migration. Pull the new image (or the binary from the download page) and restart:
docker pull synapcores/community:v2.5.2-ceRelease notes: https://synapcores.com/blog/v2-5-2-release
2. The LangChain integration, re-run this morning
langchain-synapcores 0.1.0 is on PyPI; here is the integration run fresh this morning. Two classes: SynapCoresEmbeddings computes embeddings inside the engine (no external embedding API, no extra key), and SynapCoresVectorStore keeps your documents in an ordinary SQL table with a VECTOR(384) column.
Setup: fresh venv, pip install langchain-synapcores straight from PyPI (Python 3.15, langchain-core 1.8.5). Engine: 2.5.1-ce on a Mac mini (Apple M4; the engine runs its models on the GPU via Metal).
Eight support tickets go in through LangChain, product in the metadata:
store = SynapCoresVectorStore(embedding=SynapCoresEmbeddings(), table_name="bl5_tickets")
store.add_documents(
[Document(page_content=text, metadata={"product": product}) for text, product in tickets.values()],
ids=list(tickets),
)The plain LangChain call, k=4:
LangChain similarity_search_with_score: customers who cannot sign in
0.382 T-101 [web] Password reset email never arrives, so I can't get into my account.
0.320 T-106 [mobile] Two-factor codes from the authenticator app are always rejected.
0.282 T-102 [mobile] The mobile app logs me out every few minutes.
0.246 T-104 [web] SSO with Okta fails with 'invalid audience' since this morning.Now the part only SynapCores does. The table LangChain wrote is a normal table, so SQL can read it, and EMBED() in SQL uses the same model LangChain just used. Checked first:
sql = store.client.execute
same = sql("SELECT id, COSINE_SIMILARITY(embedding, EMBED(content)) AS s FROM bl5_tickets")
stored LangChain vector vs EMBED(content) in SQL, 8 rows: min 1.0000Then one statement ranks by meaning, joins a status table (bl5_ticket_status), keeps only open tickets and brings the owner along. The question goes straight into EMBED():
rows = sql("""
SELECT t.id, s.owner, json_extract(t.metadata, '$.product') AS product,
COSINE_SIMILARITY(t.embedding, EMBED($1)) AS score, t.content
FROM bl5_tickets t JOIN bl5_ticket_status s ON s.id = t.id
WHERE s.status = 'open'
ORDER BY score DESC LIMIT 3""", [Q])
One SQL query: open tickets about 'customers who cannot sign in', with owner
0.382 T-101 maria [web] Password reset email never arrives, so I can't get into my account.
0.282 T-102 dev [mobile] The mobile app logs me out every few minutes.
0.246 T-104 priya [web] SSO with Okta fails with 'invalid audience' since this morning.Scores match the LangChain search to the third decimal, T-106 (two-factor, closed) is gone, and json_extract reads LangChain's metadata in the same query. Two clean runs gave the same numbers. Full script in the first comment.
Also on npm (checked this morning): @synapcores/mcp 1.0.0 and @synapcores/openclaw-memory 0.8.8.
This week's r/SQLv2 lesson and r/devops7 post are in the first comment. Next: Ask the maintainers on Friday, Recipe of the week #6 on Monday. Join the sub to get them in your feed.
Free Community Edition: https://synapcores.com/download?utm_source=reddit&utm_medium=owned&utm_campaign=synapcores-buildlog-5
Where do your LangChain vectors live today: a separate vector database, pgvector, or inside the database your app already uses?