AI Bill Brief

AI Bill Brief is a revolutionary tool that democratizes access to legislative information by combining the power of Snowflake, Mistral LLM, and advanced AI technologies. This application transforms complex legislative bills into easily digestible insights, making civic engagement more accessible to everyone.

About

This project was created for the RAG 'n' ROLL: Amp up Search with Snowflake & Mistral hackathon on DevPost. The hackathon challenges developers to build innovative Retrieval Augmented Generation (RAG) applications using Snowflake Cortex Search for retrieval, Mistral LLM on Snowflake Cortex for generation, and Streamlit Community Cloud for the frontend.

Impact & Outcomes

  • Accessibility: Simplifies complex legislative language for the general public
  • Efficiency: Reduces the time required to understand proposed bills through AI-powered summaries
  • Transparency: Encourages informed civic engagement by making legislative data more accessible
  • Democratic Participation: Empowers citizens to actively participate in the legislative process

Features

  • PDF Processing:

    • Automatic processing of legislative bills
    • Metadata extraction including date filed, subtitle, and sponsor
    • Efficient chunking for better context retrieval
  • AI-Powered Search:

    • Context-aware retrieval using Snowflake's Cortex framework
    • Natural language bill queries
    • Maintains chat history for better conversation flow
  • Modern UI/UX:

    • Clean, responsive interface with custom styling
    • Light purple theme with white chat containers
    • Centered chat input for better usability
  • Advanced Features:

    • Configurable model selection
    • Adjustable context chunks
    • Debug mode for development

Technology Stack

  • Retrieval: Snowflake Cortex Search
  • Generation: Mistral LLM (mistral-large2) on Snowflake Cortex
  • Frontend: Streamlit
  • Data Processing: PyPDF2 and langchain
  • Database: Snowflake

Acknowledgments

  • Built with Snowflake's Cortex framework
  • Powered by Streamlit
  • PDF processing with pdfplumber
  • Natural language processing by Mistral AI

Built With

  • cortex
  • langchain
  • mistral
  • python
  • snowflake
  • sql
  • streamlit
Share this project:

Updates