Skip to main content
POST
/
dataslice
/
suggest
Python
import os
from unstructured import UnstructuredClient

client = UnstructuredClient(
    username=os.environ.get("UNSTRUCTURED_USERNAME"),  # This is the default and can be omitted
    password=os.environ.get("UNSTRUCTURED_PASSWORD"),  # This is the default and can be omitted
)
response = client.data_slice.suggest(
    data_connector_name="data_connector_name",
)
print(response.suggested_dataslices)
{
  "suggested_dataslices": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "datasource": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "description": "<string>",
      "data_points": 123,
      "last_updated": "2023-11-07T05:31:56Z",
      "condition": {
        "children": [
          "<unknown>"
        ],
        "tag": {
          "name": "<string>",
          "values": [],
          "operator": "any"
        }
      },
      "stats": {},
      "vdb_profile_id": "<string>",
      "dataconnector_name": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.deasylabs.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
data_connector_name
string
required
user_context
string | null

Response

Successful Response

suggested_dataslices
DataSliceModel · object[]
required