Building a contract analytics application can be broken down into four steps:
- utilization
Library().create_new_library('contracts')
Creating a Knowledge Base - pass (a bill or inspection etc)
add_files
Import PDF contract file - Call the DRAGON model to generate vector embeddings:
Query.generate_embeddings('industry-bert-contracts')
- Execute semantic queries and generate answers:
prompt_with_source('Summarize termination provisions')
This process is suitable for batch analysis of legal scenarios such as termination clauses and payment terms.
This answer comes from the articlellmware: an open source framework for rapidly building enterprise-class RAG applicationsThe