Workspace class is the SDK surface for VectorShift Workspaces — secure data rooms for your documents. Group related workspaces under a Portal, load documents into a workspace, open a chat session to ask questions about them, and run Verification checks that flag unsupported claims, stale figures, and inconsistencies across documents.
Prerequisites: Installed SDK · API key set · Python 3.10+.
Mental model
- A
Portalis your team’s top-level space. It groups related workspaces and holds the agents and skills available to them. - A
Workspaceis a secure data room that lives inside a portal. It holds a set of documents you can search, chat with, and verify. - Documents are the files in a workspace. Add them with
workspace.upload(...)or manage them throughworkspace.documents. - A chat session (
workspace.create_session()) lets you ask questions in plain language and get answers grounded in the workspace’s documents. - A
Verificationchecks one document against everything else in the workspace and returns a list of issues to review — unsupported numbers, stale figures, mismatches between documents, and more. - Every method has an async variant prefixed with
a(anew,aupload,acreate_session, …).
Quick start
Working with documents
Add files (or whole folders) to a workspace’s data room withupload:
documents manager to list what’s in the data room or remove a file from it:
Chatting with a workspace
create_session() opens a chat grounded in the workspace’s documents. Sessions keep context across turns, so you can ask follow-up questions:
Verifying documents
A verification checks a document against the rest of the workspace and reports back issues to review. Create one from the workspace, run it, then triage what it finds:Portals, agents, and skills
A portal groups workspaces and exposes the agents and skills your team can use. List the workspaces under a portal, open a portal-level chat, or run one of the portal’s agents:What’s next
Reference
Every public method on
Workspace, grouped by topic.Portal
Group related workspaces and the agents and skills available to them.
Verification
Check a document against the data room and triage the issues it finds.
Examples
Runnable examples to copy-paste and adapt.
