דלג לתוכן הראשי

KnowledgeCollection

ResourceKnowledgeCollectionper workspace

KnowledgeCollection is a Lighthouse collection: documents a workspace drops in, read into the workspace Rulebook and into text agents are given.

At a glance​

מאפייןערך
apiVersionlumen.ai/v1alpha1
kindKnowledgeCollection
Resource nameknowledgecollections
ScopeNamespaced (lives in a workspace's namespace)
Short nameskc

Spec​

Fields under spec:. Nested fields are indented under their parent.

Fieldסוגברירת מחדלתיאור
descriptionstring-maxLength 1000
displayNameחובהstring-DisplayName is the title the UI shows.minLength 1; maxLength 200
embeddingClassRefstring-EmbeddingClassRef names the ModelClass (kind embedding) the search index is built with. Unused until the index exists (slice 3).maxLength 253
maxDocumentsinteger500MaxDocuments caps the documents the collection holds.minimum 1; maximum 500
modestring"auto"Mode is how an agent that names the collection is given it.one of auto, inject, retrieve
retentionobject-KnowledgeRetention bounds how long replaced and deleted versions are kept.
retention.deletedVersionsDaysinteger30DeletedVersionsDays is how long a replaced or deleted version's rows and file are kept before the sweep removes them.minimum 0; maximum 3650
sensitivestring"allow"Sensitive is what happens to a document with personal data in it. Documents are not screened yet (slice 2): allow is the only value admitted until they are, and the default.one of hold, redact, allow

Status​

Written by Lumen; do not set it. Only the phase and the conditions are described here.

Fieldסוגברירת מחדלתיאור
conditionslist of object-
conditions[].lastTransitionTimeחובהstring-lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
conditions[].messageחובהstring-message is a human readable message indicating details about the transition. This may be an empty string.maxLength 32768
conditions[].observedGenerationinteger-observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.minimum 0
conditions[].reasonחובהstring-reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.minLength 1; maxLength 1024; pattern `^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
conditions[].statusחובהstring-status of the condition, one of True, False, Unknown.one of True, False, Unknown
conditions[].typeחובהstring-type of condition in CamelCase or in foo.example.com/CamelCase.maxLength 316; pattern `^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`

kubectl columns​

ColumnTypeJSONPath
Titlestring.spec.displayName
Modestring.spec.mode
Documentsinteger.status.documents
Readystring.status.conditions[?(@.type=="Ready")].status
Agedate.metadata.creationTimestamp

Example​

knowledgecollection.yaml
apiVersion: lumen.ai/v1alpha1
kind: KnowledgeCollection
metadata:
name: ops-bible
namespace: tenant-acme
spec:
displayName: "Operations bible"
mode: inject
sensitive: allow
retention: {deletedVersionsDays: 30}
maxDocuments: 500