akashi_rag 0.1.0
akashi_rag: ^0.1.0 copied to clipboard
Retrieval-augmented generation for the Akashi agent framework: a provider-neutral Retriever seam, a pure-Dart in-memory vector store, document chunking, and glue to wire retrieval into an agent as a tool.
Changelog #
0.1.0 #
- Initial release of retrieval-augmented generation for Akashi.
Retriever— the single read-side contract agents consume; the built-inKnowledgeBaseand any external/"standard" RAG service satisfy it the same way.Document/Chunk/EmbeddedChunkvalue types, plusRetrievalQuery/RetrievedChunk.ChunkerwithRecursiveChunker(boundary-aware, the default) andFixedSizeChunker(sliding window). Character-based sizing with overlap.VectorStorecontract andInMemoryVectorStore— a pure-Dart, brute-force cosine-similarity index with metadata filtering andtoJson/fromJsonpersistence. Runs offline with no dependencies.KnowledgeBase— the built-in façade pairing a coreEmbeddingModelwith aVectorStore: chunk → embed (batched) → upsert on ingest, embed → search on retrieve. ImplementsRetriever.retrievalTool— wraps aRetrieveras an AkashiTool(model-driven retrieval), andrenderChunksfor a model-friendly context block.