rag_kit 0.1.0
rag_kit: ^0.1.0 copied to clipboard
Retrieval-augmented generation for Dart: chunking, embeddings, vector search, and context building. Bring your own embedding model.
Changelog #
0.1.0 #
Initial release.
Chunker.fixed,Chunker.paragraphs, andChunker.sentences, all reporting exact source offsets.VectorStoreinterface andInMemoryVectorStore: cosine similarity over float32 vectors with precomputed norms, top-k via a bounded min-heap,minScoreand metadatawherefilters.- Binary serialization (
toBytes/fromBytes) and, on the VM, file persistence viapackage:rag_kit/io.dart. Retriever: chunk, batch-embed, upsert,retrieve, andbuildContextfor assembling LLM prompt context.