Download scripts/smoke_precedent.py from minhbe65/RAG-api: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/spaces/minhbe65/RAG-api/resolve/main/scripts/smoke_precedent.py
- Command line
-
hf download hf://spaces/minhbe65/RAG-api/scripts/smoke_precedent.py
-
curl -L -o smoke_precedent.py https://huggingface.co/spaces/minhbe65/RAG-api/resolve/main/scripts/smoke_precedent.py
393 Bytes
| from app.agent.precedent import synthesize | |
| r = synthesize("tranh chấp về đơn phương chấm dứt hợp đồng lao động trái pháp luật", top_k=3) | |
| print("=== TỔNG HỢP ÁN LỆ ===") | |
| print(r["summary"][:1500]) | |
| print("\n=== CÁC BẢN ÁN ===") | |
| for c in r["cases"]: | |
| print(f" {c['doc_name']} | án lệ: {c['precedent_number']} | tòa: {c['court']} | score {c['score']}") | |