use crate::api::easy::SimpleGraphRAG;
use crate::api::simple;
#[test]
fn test_simple_api_compilation() {
let text = "The quick brown fox jumps over the lazy dog.";
let question = "What animal jumps?";
let _result = simple::answer(text, question);
}
#[test]
fn test_easy_api_creation() {
let text = "The quick brown fox jumps over the lazy dog.";
let result = SimpleGraphRAG::from_text(text);
match result {
Ok(_) => {
println!("SimpleGraphRAG created successfully");
},
Err(e) => {
println!("SimpleGraphRAG creation failed (expected): {e}");
},
}
}
#[test]
fn test_prelude_imports() {
use crate::prelude::*;
let _builder = GraphRAGBuilder::new();
let _preset = ConfigPreset::Basic;
let _llm = LLMProvider::Mock;
}