(tx, properties)
| 168 | |
| 169 | # Define functions for adding documents, pages, and chunks to the graph |
| 170 | def 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 | |
| 178 | def add_page(tx, doc_uuid, properties): |
| 179 | query = ( |
nothing calls this directly
no outgoing calls
no test coverage detected