Interface: RagRetrievedChunk
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:95
Structure describing a retrieved chunk.
Properties
content
content:
string
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:97
dataSourceId?
optionaldataSourceId:string
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:101
Data source / collection identifier.
embedding?
optionalembedding:number[]
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:109
Embedding vector if includeEmbeddings was requested.
id
id:
string
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:96
metadata?
optionalmetadata:Record<string,MetadataValue>
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:105
Metadata that traveled with the chunk.
originalDocumentId
originalDocumentId:
string
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:99
Original document ID for traceability.
relevanceScore?
optionalrelevanceScore:number
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:107
Similarity or relevance score returned by the vector store.
source?
optionalsource:string
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:103
Optional human-friendly source description.