use anyhow::Result;
use rag_module::RagModule;
#[tokio::main]
async fn main() -> Result<()> {
println!("Testing get_all_contexts_for_user function\n");
let mut rag_module = RagModule::new("/Users/aparnapitchikala/Library/Application Support/Escher").await?;
rag_module.initialize().await?;
let user_id = "148854b8-9091-70e0-ed07-40553c514535";
println!("Fetching all contexts for user: {}...", user_id);
let contexts = rag_module.get_all_contexts(user_id).await?;
println!("\nJSON Output:");
println!("{}", serde_json::to_string_pretty(&contexts)?);
Ok(())
}