Skip to main content
Version: v3.9.0

Knowledge fields

Reference for kind: Knowledge. The field shape matches Model fields. Attach and microservice binding are on AI Knowledge Catalog.

Deploy
apiVersion: datasance.com/v3 # required, string
kind: Knowledge # required, string
metadata:
name: product-docs # required, string. Lowercase alphanumeric
namespace: my-ecn # no, string
spec:
repo: org/product-docs # required, string
registry: remote # one of, string. Keep one of registry or registryId, or set both to the same id
registryId: 1 # one of, int
revision: main # no, string
files: # no, list of string
- docs/*.md
format: jsonl # no, string

Not deployed​

These fields come back from describe. Leave them out of the file you pass to deploy.

spec:
uuid: "<uuid>" # describe only, string
status:
linkedAgents: [] # describe only

metadata.name is required. Use a lowercase alphanumeric name.

Fields​

FieldTypeRequiredDescription
repostringYesRepository path for documents or datasets.
registrystringOne ofremote (id 1), local (id 2), or a numeric id as a string.
registryIdintOne ofNumeric Controller registry id.
revisionstringNoTag, digest, or content pin.
filesstring listNoFile paths or globs inside the repo.
formatstringNoFormat hint, such as jsonl. The Controller validates it.
uuidstringDescribe onlyOmit on deploy.

When both registry and registryId are set, they must be the same id. Alias rules match the model object.

Validation​

ConditionError
Missing metadata.nameName must be specified.
Invalid nameLowercase alphanumeric.
Missing reporepo must be specified.
Missing registryspec.registry or spec.registryId must be specified.
Conflicting registry fieldsThe two fields must refer to the same registry.

Describe​

describe knowledge NAME returns spec (uuid, repo, revision, registryId, files, format) and status.linkedAgents.

After attach, describe agent reports knowledgeStatus, activeKnowledge, and knowledgeLastUpdate (Unix milliseconds on the wire; describe may print RFC3339). activeKnowledge is a managed count.

Group 3See anything wrong with the document? Help us improve it!