Documentation Index
Fetch the complete documentation index at: https://translations.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Objects
An Object is versioned, serializable data. Weave automatically versions objects when they change, creating an immutable history. Objects include:- Datasets: Collections of examples for evaluation
- Models: Configurations and parameters for your LLM logic
- Prompts: Versioned prompt templates
Publishing an object
Weave’s serialization layer saves and versions objects.- Python
- TypeScript
Getting an object back
- Python
- TypeScript
weave.publish returns a Ref. You can call .get() on any Ref to get the object back.You can construct a ref and then fetch the object back.Deleting an object
- Python
- TypeScript
To delete a version of an object, call Trying to access a deleted object will result in an error. Resolving an object that has a reference to a deleted object will return a
.delete() on the object ref.DeletedRef object in place of the deleted object.Ref styles
A fully qualified Weave object ref URI looks like this:- entity: wandb entity (username or team)
- project: wandb project
- object_name: object name
- object_version: either a version hash, a string like v0, v1…, or an alias like “:latest”. All objects have the “:latest” alias.
weave.ref(<name>): requiresweave.init(<project>)to have been called. Refers to the “:latest” versionweave.ref(<name>:<version>): requiresweave.init(<project>)to have been called.weave.ref(<fully_qualified_ref_uri>): can be constructed without calling weave.init