Spaces:
Sleeping
Sleeping
Download src/types.rs from AryanAngiras31/Verity_backend: direct link, hf CLI and curl.
- Browser
- Download file 591 Bytes
-
https://huggingface.co/spaces/AryanAngiras31/Verity_backend/resolve/main/src/types.rs
- Command line
-
hf download hf://spaces/AryanAngiras31/Verity_backend/src/types.rs
-
curl -L -o types.rs https://huggingface.co/spaces/AryanAngiras31/Verity_backend/resolve/main/src/types.rs
591 Bytes
| use serde::{Deserialize, Serialize}; | |
| // The incoming request payload | |
| pub struct VerifyRequest { | |
| pub claim: String, | |
| pub qdrant_threshold: Option<f32>, | |
| } | |
| // The outgoing response payload | |
| pub struct VerifyResponse { | |
| pub final_verdict: String, | |
| pub aggregate_confidence: f32, | |
| pub evidence: Vec<Evidence>, | |
| } | |
| // The individual evidence cards for the React frontend | |
| pub struct Evidence { | |
| pub title: String, | |
| pub source: String, | |
| pub snippet: String, | |
| pub stance: String, | |
| pub confidence: f32, | |
| } | |