Service

A Pinecone service is a live instance of Pinecone’s vector database.

class pinecone.service.ServiceMeta(name: str, graph: pinecone.graph.Graph, status: dict)

Metadata of a service.

Create new instance of ServiceMeta(name, graph, status)

property graph

Alias for field number 1

property name

Alias for field number 0

property status

Alias for field number 2

pinecone.service.deploy(service_name: str, graph: pinecone.graph.Graph, **kwargs)

Create a new Pinecone service from the graph.

Parameters
  • service_name (str) – name of the service

  • graph (pinecone.graph.Graph) – the graphical representation fo the service

pinecone.service.describe(service_name: str)pinecone.service.ServiceMeta

Returns the metadata of a service.

Parameters

service_name (str) – name of the service

Returns

ServiceMeta

pinecone.service.ls() → List[str]

Returns all services names.

pinecone.service.stop(service_name: str, **kwargs)

Stops a service.

Parameters

service_name (str) – name of the service