on_device_rag 0.1.0
on_device_rag: ^0.1.0 copied to clipboard
A lightweight, pure-Dart on-device Retrieval-Augmented Generation (RAG) engine for Flutter and Dart: chunk text, embed it, run vector similarity search, and build grounded prompts — fully offline, bri [...]
Changelog #
0.1.0 #
- Initial release.
RagEngineorchestrator withindex,retrieveandask.TextChunkerfor overlapping character-window chunking.EmbeddingModelinterface plus zero-dependencyHashingEmbeddingModel.VectorStoreinterface plusInMemoryVectorStorewith JSON persistence.LanguageModelinterface for pluggable on-device or remote generation.PromptBuilderwith a grounded default template andVectorMathhelpers.