Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.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 and creates 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
Get 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.Delete an object
- Python
- TypeScript
To delete a version of an object, call Accessing a deleted object returns an error. Resolving an object that has a reference to a deleted object returns a
.delete() on the object ref.DeletedRef in place of the deleted object.Constructing object refs
In Weave, a fully qualified object ref URI looks like this:- your-team-name: W&B entity (username or team name)
- your-project-name: W&B project
- object_name: object name
- object_version: either a version hash, a string like
v0orv1, or an alias like:latest. All objects have the:latestalias.
weave.ref(<name>): Retrieves the:latestversion of an object. Requires callingweave.init(...).weave.ref(<name>:<version>): Retrieves the specified version of an object. Requires callingweave.init(...).weave.ref(<fully_qualified_ref_uri>): Retrieves the object located at the specified fully qualified object ref URI. Does not require callingweave.init().