Spaces:
Sleeping
Sleeping
| """Guide tab implementation""" | |
| import streamlit as st | |
| from legisqa_local.tabs.base import BaseTab | |
| class GuideTab(BaseTab): | |
| """Guide and documentation tab""" | |
| def __init__(self): | |
| super().__init__("Guide", "guide") | |
| def render(self): | |
| """Render the guide tab""" | |
| st.write( | |
| """ | |
| # LegisQA Guide | |
| Welcome to LegisQA! This tool allows you to query congressional legislation using natural language. | |
| ## How to Use | |
| 1. **Choose a Tab**: Select between single RAG queries or side-by-side comparisons | |
| 2. **Enter Your Query**: Ask questions about congressional legislation in natural language | |
| 3. **Configure Settings**: Adjust model and retrieval parameters as needed | |
| 4. **Submit**: Click submit and wait for the AI to generate a response | |
| ## Example Queries | |
| - "What are the main themes around artificial intelligence legislation?" | |
| - "Write a summary of recent climate change bills" | |
| - "Create a table of healthcare reform proposals" | |
| - "What bills address social security reform?" | |
| ## Features | |
| - **Multiple LLM Providers**: OpenAI, Anthropic, Together.ai, Google | |
| - **Flexible Retrieval**: Filter by congress number, bill ID, sponsor party | |
| - **Citation Support**: Responses include links to original legislation | |
| - **Cost Tracking**: Monitor API usage and costs | |
| - **Side-by-Side**: Compare responses from different models | |
| ## Tips | |
| - Be specific in your queries for better results | |
| - Use the retrieval filters to narrow down the search space | |
| - Try different models to compare response quality | |
| - Check the retrieved chunks to understand the source material | |
| """ | |
| ) | |