MCPcopy Create free account
hub / github.com/Pometry/Raphtory / vectorise_all_graphs

Method vectorise_all_graphs

raphtory-graphql/src/python/server/server.rs:178–195  ·  view source on GitHub ↗
(
        &self,
        py: Python,
        embeddings: PyOpenAIEmbeddings,
        nodes: TemplateConfig,
        edges: TemplateConfig,
    )

Source from the content-addressed store, hash-verified

176 signature = (embeddings, nodes = TemplateConfig::Bool(true), edges = TemplateConfig::Bool(true))
177 )]
178 fn vectorise_all_graphs(
179 &self,
180 py: Python,
181 embeddings: PyOpenAIEmbeddings,
182 nodes: TemplateConfig,
183 edges: TemplateConfig,
184 ) -> PyResult<()> {
185 let template = template_from_python(nodes, edges)?;
186 // allow threads just in case the embedding server is using the same python runtime
187 py.detach(|| {
188 block_on(async move {
189 self.0
190 .vectorise_all_graphs(&template, embeddings.into())
191 .await?;
192 Ok(())
193 })
194 })
195 }
196
197 /// Start the server and return a handle to it.
198 ///

Callers

nothing calls this directly

Calls 3

template_from_pythonFunction · 0.85
block_onFunction · 0.85
intoMethod · 0.45

Tested by

no test coverage detected