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

Function add_document

app/routers/utils.py:170–176  ·  view source on GitHub ↗
(tx, properties)

Source from the content-addressed store, hash-verified

168
169# Define functions for adding documents, pages, and chunks to the graph
170def add_document(tx, properties):
171 query = (
172 "CREATE (d:Document {uuid: $uuid, name: $name, title: $title, url: $url, "
173 "sourceurl: $sourceurl, thumbnailurl: $thumbnailurl, text: $text}) "
174 "RETURN d"
175 )
176 return tx.run(query, properties).single()["d"]
177
178def add_page(tx, doc_uuid, properties):
179 query = (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected