Repository navigation
Zuanxin: A Rental-Law Assistant with RAG and Tool Calling #45177
northflower
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Zuanxin is a Chinese rental-law assistant built with Dify Chatflow.
Features
The workflow combines query rewriting, knowledge retrieval, reranking, and Function Calling. Its knowledge base contains 536 legal provisions from 8 legal instruments and 40 case summaries collected from official sources.
Answers check legal applicability by date and jurisdiction. The contract-review branch handles instructions embedded in contract text as untrusted input.
Testing
Using AgentProbe, I evaluated the application with 185 cases across eight dimensions, including accuracy, tool use, citations, memory, security, and robustness. After fixes, passing cases increased from 143 to 168 under the same evaluation criteria.
Package and setup
The attached ZIP includes the workflow DSL, knowledge-base documents, FastAPI calculation service, OpenAPI schema, and setup instructions.
To run it, configure your models, create the knowledge bases, start the tool service, import the DSL, and bind the resources in Dify.
Download
租安心-Dify应用.zip
All reactions