agentscope-extensions-rag-simple is the “DIY end-to-end” RAG implementation: it bundles document readers, chunking strategies, embedding adapters, and five out-of-the-box vector store adapters.
Use it when: you’re happy to run embeddings + vector store yourself and don’t want a third-party RAG platform.
Add the dependency
Quickstart
Built-in document readers
Theio.agentscope.core.rag.reader package contains readers for common formats; each produces List<Document>:
The resulting
Document objects already carry metadata; pair with TextChunker and SplitStrategy for chunking.
Built-in embedding providers
Implement
EmbeddingModel to add your own.
Built-in vector stores
Switching stores is a one-line change: pass a different
VDBStoreBase to SimpleKnowledge.builder().embeddingStore(...).
Retrieval parameters
RetrieveConfig controls retrieval: