#ai #source #data-processing #rag #async

cortex-sources

Ready-made source implementations for various data inputs in the Cortex ecosystem

1 unstable release

0.1.0 Nov 14, 2024

#489 in Asynchronous

Download history 99/week @ 2024-11-10 18/week @ 2024-11-17

117 downloads per month

Apache-2.0

60KB
555 lines

Cortex Sources

Crates.io Documentation License: Apache

Ready-made source implementations for various data inputs that can be used with the cortex-ai processing framework.

Features

  • File system sources
  • More coming soon...

Usage

Add this to your Cargo.toml:

[dependencies]
cortex-sources = "0.1.0"

Example

use cortex_sources::fs::FileSource;
use cortex_ai::composer::flow::Source;

#[tokio::main]
async fn main() {
    let source = FileSource::new("path/to/file.txt");
    let content = source.read().await.unwrap();
    println!("File content: {}", content);
}

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Dependencies

~16–23MB
~285K SLoC