# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "hallucination-detection" version = "0.1.5" authors = ["Devflow Inc. "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Extremely fast Hallucination Detection for RAG using BERT NER, noun, and number analysis" readme = "README.md" license = "MIT" repository = "https://github.com/devflowinc/trieve" [profile.test] inherits = "release" [lib] name = "hallucination_detection" path = "src/lib.rs" [[example]] name = "rag_truth_test" path = "examples/rag_truth_test.rs" [[example]] name = "vectara_test" path = "examples/vectara_test.rs" [dependencies.once_cell] version = "1.18" [dependencies.ort] version = "1.16.3" features = ["load-dynamic"] optional = true default-features = false [dependencies.regex] version = "1.11.1" [dependencies.reqwest] version = "0.12.9" [dependencies.rust-bert] version = "0.23.0" optional = true [dependencies.serde] version = "1.0.215" features = ["derive"] [dependencies.tokio] version = "1.42.0" features = ["full"] [dev-dependencies.csv] version = "1.3.1" [dev-dependencies.dotenvy] version = "0.15.7" [dev-dependencies.futures] version = "0.3.31" [dev-dependencies.openai_dive] version = "0.7.0" [dev-dependencies.ort] version = "1.16.3" features = [ "download-binaries", "load-dynamic", ] [dev-dependencies.rstest] version = "0.23.0" [dev-dependencies.serde_json] version = "1.0.133" [features] default = ["ner"] download-onnx = ["ort?/download-binaries"] ner = ["rust-bert"] onnx = [ "ort", "rust-bert?/onnx", ]