File size: 1,624 Bytes
ac2020e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
"""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

        """
        )