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