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