You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a89a9e5
Browse filesBrowse the repository at this point in the historyBrowse files
ks-release-bot
committed
chore(release): regenerate ksapi v1.107.0 from ks-backend
**polygons** | [**List[PolygonReference]**](PolygonReference.md) | List of bounding boxes in the source document for the chunk, potentially from multiple areas of multiple pages. | [optional]
10
10
**s3_urls** | **List[str]** | Ordered s3:// URIs to visual assets for this chunk. Single-element for standard IMAGE/TABLE/HTML chunks, multi-element for multi-page single-chunk ingestion. | [optional]
11
-
**summary** | **str** | LLM-generated summary of the chunk content. Used for TABLE and HTML chunks to enrich embedding text. | [optional]
11
+
**summary** | **str** | LLM-generated summary of the chunk content. Used for TABLE and HTML chunks to enrich embedding text, and for JSON/YAML chunks (with summarize_for_embedding) as the sole dense embedding text. | [optional]
12
+
**summarize_for_embedding** | **bool** | When True, this chunk's dense embedding is built from its LLM-generated summary (see summary) instead of its raw content. Set for parsed JSON/YAML single chunks so noisy structured text does not dominate the vector; the raw content is still kept for display and sparse (keyword) retrieval. Enrichment generates the summary when this is set and summary is empty. | [optional][default to False]
12
13
**extracted_text_s3_uri** | **str** | S3 URI to extracted PDF text used for LLM grounding during enrichment | [optional]
Copy file name to clipboardExpand all lines: docs/DocumentType.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,10 @@ Type of document.
18
18
19
19
*`PPTX` (value: `'PPTX'`)
20
20
21
+
*`JSON` (value: `'JSON'`)
22
+
23
+
*`YAML` (value: `'YAML'`)
24
+
21
25
*`UNKNOWN` (value: `'UNKNOWN'`)
22
26
23
27
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
polygons: Optional[List[PolygonReference]] =Field(default=None, description="List of bounding boxes in the source document for the chunk, potentially from multiple areas of multiple pages.")
33
33
s3_urls: Optional[List[StrictStr]] =Field(default=None, description="Ordered s3:// URIs to visual assets for this chunk. Single-element for standard IMAGE/TABLE/HTML chunks, multi-element for multi-page single-chunk ingestion.")
34
-
summary: Optional[StrictStr] =Field(default=None, description="LLM-generated summary of the chunk content. Used for TABLE and HTML chunks to enrich embedding text.")
34
+
summary: Optional[StrictStr] =Field(default=None, description="LLM-generated summary of the chunk content. Used for TABLE and HTML chunks to enrich embedding text, and for JSON/YAML chunks (with summarize_for_embedding) as the sole dense embedding text.")
35
+
summarize_for_embedding: Optional[StrictBool] =Field(default=False, description="When True, this chunk's dense embedding is built from its LLM-generated summary (see summary) instead of its raw content. Set for parsed JSON/YAML single chunks so noisy structured text does not dominate the vector; the raw content is still kept for display and sparse (keyword) retrieval. Enrichment generates the summary when this is set and summary is empty.")
35
36
extracted_text_s3_uri: Optional[StrictStr] =Field(default=None, description="S3 URI to extracted PDF text used for LLM grounding during enrichment")
36
37
secondary_taxonomy: Optional[ImageTaxonomy] =None
37
38
sheet_name: Optional[StrictStr] =Field(default=None, description="Worksheet name this chunk was extracted from (XLSX only)")
@@ -44,7 +45,7 @@ class ChunkMetadata(BaseModel):
44
45
key_cells: Optional[List[StrictStr]] =Field(default=None, description="Notable output/header cells as A1 refs, e.g. 'Sheet1!A1' (XLSX only)")
45
46
named_ranges: Optional[List[StrictStr]] =Field(default=None, description="Names of named ranges overlapping this chunk (XLSX only)")
0 commit comments