SAMVectorstore
smarter.models.sam.vectorstore
SAM model of the Vectorstore kind, generated from the Smarter platform’s JSON Schema.
Do not edit: run scripts/generate_sam_models.py. See smarter.models.sam.
- class smarter.models.sam.vectorstore.SAMDependency
Bases:
smarter.models.sam.base.SAMModelA resource that depends on the resource that a manifest describes.
- class smarter.models.sam.vectorstore.SAMVectorstoreEmbeddings
Bases:
smarter.models.sam.base.SAMModelVectorstore.spec.embeddings: how documents and queries are turned into vectors.
- batchSize: Optional
Vectorstore.__init__.embeddings.batchSize: chunks per embeddings request and upsert.
- chunkOverlap: Optional
Vectorstore.__init__.embeddings.chunkOverlap: characters shared by consecutive chunks.
- chunkSize: Optional
Vectorstore.__init__.embeddings.chunkSize: characters per chunk.
- dimensions: Optional
Vectorstore.__init__.embeddings.dimensions: ask the model for vectors of this size, if it supports it, e.g. text-embedding-3.
It must equal index.dimension.
- class smarter.models.sam.vectorstore.Metric
Bases:
enum.EnumVectorstore.__init__.index.metric: the distance metric.
- class smarter.models.sam.vectorstore.SAMVectorstoreIndex
Bases:
smarter.models.sam.base.SAMModelVectorstore.spec.index: the index (Pinecone), or collection (Qdrant), of the database.
- deletionProtection: bool | None
Vectorstore.__init__.index.deletionProtection: refuse to destroy the database.
- metric: smarter.models.sam.vectorstore.Metric | None
Vectorstore.__init__.index.metric: the distance metric.
- name: Optional
Vectorstore.__init__.index.name: the index or collection’s name, in lowercase letters, digits and hyphens.
Defaults to the manifest’s name, with the account number for a managed service.
- class smarter.models.sam.vectorstore.SAMVectorstoreMaintenance
Bases:
smarter.models.sam.base.SAMModelVectorstore.spec.maintenance: what Celery Beat does, besides checking its status.
- snapshotIntervalHours: Optional
Vectorstore.__init__.maintenance.snapshotIntervalHours: how often.
- snapshotRetention: Optional
Vectorstore.__init__.maintenance.snapshotRetention: how many are kept.
Older ones are deleted.
- class smarter.models.sam.vectorstore.SAMVectorstoreMetadata
Bases:
smarter.models.sam.base.SAMModelSmarter API Vectorstore Manifest - Metadata class.
- annotations: None | list[dict[str, str | int | float | bool | datetime.date | datetime.datetime | Annotated[str, StringConstraints(strip_whitespace=None, to_upper=None, to_lower=None, strict=None, min_length=None, max_length=None, pattern='^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$')] | uuid.UUID | bytes | list | dict[str, Any]]]
The manifest annotations.
- Used for storing arbitrary metadata as
key-value pairs. Example: [{‘smarter.sh/test-manifest/project-name’: ‘Scooby dooby do’}]. The key should be a valid url-friendly string. The value accepts multi-line string values (YAML block scalars) and various scalar types including str, int, float, bool, datetime.date, datetime.datetime, decimal.Decimal, uuid.UUID, bytes, list, dict.
- class smarter.models.sam.vectorstore.SAMVectorstorePinecone
Bases:
smarter.models.sam.base.SAMModelVectorstore.spec.pinecone: where Pinecone runs a serverless index.
- cloud: smarter.models.sam.vectorstore.Cloud | None
Vectorstore.__init__.pinecone.cloud.
- region: Optional
Vectorstore.__init__.pinecone.region.
- class smarter.models.sam.vectorstore.SAMVectorstoreSelfHosted
Bases:
smarter.models.sam.base.SAMModelVectorstore.spec.selfHosted: the Qdrant server that Smarter runs on Kubernetes.
- class smarter.models.sam.vectorstore.Backend
Bases:
enum.EnumVectorstore.__init__.backend: qdrant or pinecone.
- class smarter.models.sam.vectorstore.Hosting
Bases:
enum.EnumVectorstore.__init__.hosting: self_hosted, run by Smarter on Kubernetes (qdrant only), or managed, a service reached through the ApiConnection in connection.
- class smarter.models.sam.vectorstore.SAMVectorstoreSpec
Bases:
smarter.models.sam.base.SAMModelSmarter API Vectorstore Manifest Vectorstore.spec.
- connection: str | None
Vectorstore.__init__.connection: managed only.
The name of an ApiConnection with the service’s URL and API key Secret, e.g. https://api.pinecone.io, or a Qdrant Cloud cluster’s URL.
- embeddings: SAMVectorstoreEmbeddings
Vectorstore.__init__.embeddings.
- hosting: smarter.models.sam.vectorstore.Hosting | None
Vectorstore.__init__.hosting: self_hosted, run by Smarter on Kubernetes (qdrant only), or managed, a service reached through the ApiConnection in connection.
- index: SAMVectorstoreIndex
Vectorstore.__init__.index.
- maintenance: smarter.models.sam.vectorstore.SAMVectorstoreMaintenance | None
Vectorstore.__init__.maintenance.
- pinecone: smarter.models.sam.vectorstore.SAMVectorstorePinecone | None
Vectorstore.__init__.pinecone: pinecone only.
- selfHosted: smarter.models.sam.vectorstore.SAMVectorstoreSelfHosted | None
Vectorstore.__init__.selfHosted: self_hosted only.
- class smarter.models.sam.vectorstore.SAMVectorstoreStatus
Bases:
smarter.models.sam.base.SAMModelSmarter API Vectorstore Manifest - Status class.
Read only.
- apiKeySecret: str | None
Vectorstore.status.apiKeySecret: the Secret with a self-hosted database’s API key.
- created: datetime
The date in which this resource was created.
Read only.
- dependencies: list[smarter.models.sam.vectorstore.SAMDependency] | None
Dependencies[List]: The resources that depend on this resource, and that must be deleted, or stop referring to it, before it can be deleted.
Lists only the resources that you can read. Read only.
- deployedAt: datetime.datetime | None
- lastCheckedAt: datetime.datetime | None
- lastMaintenanceAt: datetime.datetime | None
- lastSnapshotAt: datetime.datetime | None
- modified: datetime
The date in which this resource was most recently changed.
Read only.
- class smarter.models.sam.vectorstore.SAMVectorstore
Bases:
smarter.models.sam.base.SAMModelSmarter API Manifest - Vectorstore.
- metadata: SAMVectorstoreMetadata
Vectorstore.metadata[obj]: Required, the Vectorstore metadata.
- spec: SAMVectorstoreSpec
Vectorstore.spec[obj]: Required, the Vectorstore specification.
- status: smarter.models.sam.vectorstore.SAMVectorstoreStatus | None
Vectorstore.status[obj]: Optional, Read-only.
Stateful status information about the Vectorstore.