MCPcopy Create free account
hub / github.com/clockworknowledge/menome_processor / setupSourceChunks

Function setupSourceChunks

app/routers/utils.py:197–203  ·  view source on GitHub ↗
(tx)

Source from the content-addressed store, hash-verified

195 return tx.run(query, {"parent_uuid": parent_uuid, **properties}).single()["c"]
196
197def setupSourceChunks(tx):
198 query1="""match (c:Chunk)-[]-(p:Page)-[]-(d:Document) where c.source is null
199 set c.source=p.Name + ', PDF ' + d.SourceUrl"""
200
201 query2="""match (c:Chunk)-[]-(p:Page)-[]-(d:Document)
202 set c.source=p.Uuid"""
203 return tx.run(query2)
204
205

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected