use-rag 0.0.1

RAG metadata primitives for RustUse AI workflows.
Documentation
  • Coverage
  • 1.01%
    1 out of 99 items documented1 out of 33 items with examples
  • Size
  • Source code size: 11 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.35 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-ai
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-rag

RAG metadata primitives for RustUse AI workflows.

Experimental

use-rag is experimental while use-ai remains below 0.3.0.

Example

use use_rag::{RagCorpusName, RagRetrieverKind, RagRetrievalMode};

let corpus = RagCorpusName::new("support-docs")?;

assert_eq!(corpus.as_str(), "support-docs");
assert_eq!("file search".parse::<RagRetrieverKind>()?, RagRetrieverKind::FileSearch);
assert_eq!(RagRetrievalMode::TopK.as_str(), "top-k");
# Ok::<(), use_rag::RagError>(())

Scope

  • RAG corpus, document, and chunk identifiers plus chunk, retriever, retrieval, ranking, citation, grounding, assembly, and freshness labels.
  • Metadata only.

Non-goals

  • Retrieval, embedding computation, vector search, ranking execution, context assembly, crawling, or citation verification.

License

Licensed under either Apache-2.0 or MIT.