Interface: EmbeddedContent
ragCore.ContentStore.EmbeddedContent
The embedded content of a chunk of text stored in the database.
Properties
chunkAlgoHash
• Optional
chunkAlgoHash: string
Non-cryptographic hash of the actual chunking function (and its options) used to produce this chunk. Used to detect whether the chunk should be updated because the function or options have changed.
Defined in
mongodb-rag-core/build/contentStore/EmbeddedContent.d.ts:51
chunkIndex
• Optional
chunkIndex: number
The order of the chunk if this content was chunked from a larger page.
Defined in
mongodb-rag-core/build/contentStore/EmbeddedContent.d.ts:45
embeddings
• embeddings: Object
The vector embeddings of the text.
Index signature
▪ [k: string
]: number
[]
Defined in
mongodb-rag-core/build/contentStore/EmbeddedContent.d.ts:26
metadata
• Optional
metadata: Object
Arbitrary metadata associated with the content. If the content text has metadata in Front Matter format, this metadata should match that metadata.
Index signature
▪ [k: string
]: unknown
Type declaration
Name | Type |
---|---|
pageTitle? | string |
tags? | string [] |
Defined in
mongodb-rag-core/build/contentStore/EmbeddedContent.d.ts:37
sourceName
• sourceName: string
The name of the data source the page was loaded from.
Defined in
mongodb-rag-core/build/contentStore/EmbeddedContent.d.ts:14
text
• text: string
The text represented by the vector embedding.
Defined in
mongodb-rag-core/build/contentStore/EmbeddedContent.d.ts:18
tokenCount
• tokenCount: number
The number of embedding tokens in the content.