Skip to content

The objective is to build, evaluate, and improve a Retrieval-Augmented Generation (RAG) system for Contract Q&A, simulating interaction with a contract by asking questions and getting precise answers.

License

Notifications You must be signed in to change notification settings

Yohanes213/Contract-Advisor-RAG

Repository files navigation

Contract-Advisor-RAG: Building a High-Precision Legal Contract LLM App

Overview

This project aims to develop a Retrieval Augmented Generation (RAG) system for Contract Q&A, forming the basis for Lizzy AI's fully autonomous contract lawyer. The system combines the power of language models with external data retrieval to answer questions about contracts with high precision.

Installation

  1. Clone the repo
git clone github.com/Yohanes213/Contract-Advisor-RAG
cd Contract-Advisor-RAG
  1. Install the dependencies
pip install -r requirements.txt
  1. Set up environment variables:
export OPENAI_API_KEYS=<your_openai_api_key>
export PINECONE_API_KEY=<your_pinecone_api_key>
export LANGCHAIN_API_KEY=<your_langchain_api_key>
export COHERE_API_KEYS=<your_cohere_api_key>

Usage

Run the Streamlit App

streamlit run app.py

Contributing

Contributions are welcome! Please create an issue or pull request for any feature requests or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

The objective is to build, evaluate, and improve a Retrieval-Augmented Generation (RAG) system for Contract Q&A, simulating interaction with a contract by asking questions and getting precise answers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages