Spaces:
Sleeping
Sleeping
Download core/explain.py from GodsDevProject/FOIA_Doc_Search: direct link, hf CLI and curl.
- Browser
- Download file 368 Bytes
-
https://huggingface.co/spaces/GodsDevProject/FOIA_Doc_Search/resolve/main/core/explain.py
- Command line
-
hf download hf://spaces/GodsDevProject/FOIA_Doc_Search/core/explain.py
-
curl -L -o explain.py https://huggingface.co/spaces/GodsDevProject/FOIA_Doc_Search/resolve/main/core/explain.py
368 Bytes
| def explain(results): | |
| return { | |
| "total_results": len(results), | |
| "sources": list(set(r.get("source") for r in results)), | |
| "methods": [ | |
| "Public FOIA reading room search", | |
| "Async fan-out querying", | |
| "Deduplication", | |
| "Semantic refinement (FAISS)" | |
| ], | |
| "no_restricted_access": True | |
| } |