The Chat With Your Data Contract Review and Summarization Assistant is designed to help professionals efficiently manage and interact with a large collection of documents. It utilizes advanced natural language processing capabilities to provide accurate and contextually relevant responses to user queries about the documents.
The following is the Chat With Your Data infrastructure configuration that we suggest to optimize the performance and functionality of the Contract Review and Summarization Assistant:
- Azure Semantic Search: Utilize Azure Semantic Search to efficiently index and search legal documents. This provides powerful search capabilities and integration with other Azure services.
- Azure Cognitive Search Top K 15: Set the Top K parameter to 15 to retrieve the top 15 most relevant documents. This configuration helps in providing precise and relevant search results for user queries.
- Azure Search Integrated Vectorization: Enable integrated vectorization in Azure Search to improve the semantic understanding and relevance of search results. This enhances the Contract Assistant's ability to provide contextually accurate answers.
- Azure OpenAI Model gpt-4o: Leverage the Azure OpenAI model gpt-4o for advanced natural language processing capabilities. This model is well-suited for handling complex legal queries and providing detailed and contextually appropriate responses.
- Orchestration Strategy: Semantic Kernel: Implement the Semantic Kernel orchestration strategy to effectively manage the integration and interaction between different components of the infrastructure. This strategy ensures seamless operation and optimal performance of the Contract Assistant.
- Conversation Flow Options: Setting
CONVERSATION_FLOW
enables running advanced AI models like GPT-4o on your own enterprise data without needing to train or fine-tune models.
By following these infrastructure configurations, you can enhance the efficiency, accuracy, and overall performance of the Chat With Your Data Contract Review and Summarization Assistant, ensuring it meets the high demands and expectations of professionals.
To apply the suggested configurations in your deployment, update the following fields accordingly:
- Azure Semantic Search: Set
AZURE_SEARCH_USE_SEMANTIC_SEARCH
totrue
- Azure Cognitive Search Top K 15: Set
AZURE_SEARCH_TOP_K
to15
. - Azure Search Integrated Vectorization: Set
AZURE_SEARCH_USE_INTEGRATED_VECTORIZATION
totrue
. - Azure OpenAI Model: Set
AZURE_OPENAI_MODEL
togpt-4o
. - Azure OpenAI Model Name: Set
AZURE_OPENAI_MODEL_NAME
togpt-4o
. (could be different based on the name of the Azure OpenAI model deployment) - Azure OpenAI Model Name Version: Set
AZURE_OPENAI_MODEL_VERSION
to2024-05-13
. - Conversation Flow Options: Set
CONVERSATION_FLOW
tobyod
- Orchestration Strategy: Set
ORCHESTRATION_STRATEGY
toSemantic Kernel
.
In the admin panel, there is a dropdown to select the Chat With Your Data Contract Assistant. The options are:
- Default: Chat With Your Data default prompt.
- Selected: Contract Review and Summarization Assistant prompt.
When the user selects "Contract Assistant," the user prompt textbox will update to the Contract Assistant prompt. When the user selects the default, the user prompt textbox will update to the default prompt. Note that if the user has a custom prompt in the user prompt textbox, selecting an option from the dropdown will overwrite the custom prompt with the default or contract assistant prompt. Ensure to Save the Configuration after making this change.
The Contract Review and Summarization Assistant prompt configuration ensures that the AI responds accurately based on the given context, handling a variety of tasks such as listing documents, filtering based on specific criteria, and summarizing document content. Below is the detailed prompt configuration:
## Summary Contracts
Context:
{sources}
- You are a contract assistant.
You can see the Contract Review and Summarization Assistant Prompt file for more details.
We have added sample contract data in the Contract Assistant sample Docs folder. This data can be used to test and demonstrate the Contract Review and Summarization Assistant's capabilities.
This README provides an overview of the Chat With Your Data Contract Review and Summarization Assistant prompt, instructions for updating the prompt configuration, and examples of questions and answers. Ensure you follow the guidelines for updating the prompt to maintain consistency and accuracy in responses.