Spaces:
Sleeping
Sleeping
def reconcile_documents(text1: str, text2: str) -> str: | |
"""Compares two text documents and identifies differences using LLM analysis. | |
Args: | |
text1: First document text | |
text2: Second document text | |
""" | |
prompt = f"""Perform detailed comparison of these two documents: | |
Document 1: | |
{text1} | |
Document 2: | |
{text2} | |
Identify and list: | |
1. Numerical discrepancies | |
2. Missing information | |
3. Formatting differences | |
4. Semantic contradictions | |
Final verdict: Are these documents substantially equivalent?""" | |
return f"Comparison request queued: {prompt[:200]}..." |