File size: 1,655 Bytes
e9dc38f
 
 
 
7834e0b
e9dc38f
63da7c1
 
d5f869d
63da7c1
6948d18
 
 
63da7c1
 
 
 
 
 
6948d18
63da7c1
6948d18
63da7c1
 
 
 
6948d18
63da7c1
6948d18
63da7c1
 
 
6948d18
63da7c1
6948d18
63da7c1
 
 
 
 
6948d18
63da7c1
6948d18
63da7c1
 
 
6948d18
63da7c1
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
---
license: apache-2.0
title: rdune71/myspace132
sdk: gradio
sdk_version: 5.44.1
---
# README.md
# AI Research Assistant

This is an AI-powered research assistant that helps you quickly gather and analyze information on any topic. It combines web search capabilities with advanced language models to provide structured, cited research summaries.

## Features

- **Web Search Integration**: Uses Tavily API to find recent and relevant information
- **AI Analysis**: Processes information using a custom large language model
- **Citation Management**: Automatically tracks and formats sources
- **Structured Output**: Organizes information into clear sections
- **Streaming Updates**: Shows progress during processing
- **Logging**: Comprehensive logging for debugging and monitoring

## How to Use

1. Enter a research question in the input box
2. Click "Research" or press Enter
3. Watch the progress indicators as your research is processed
4. Get a comprehensive analysis with sources

## Example Queries

- "Latest advancements in quantum computing"
- "Impact of climate change on global agriculture"
- "Recent developments in Alzheimer's treatment research"

## Setup for Local Development

1. Install requirements: `pip install -r requirements.txt`
2. Set environment variables:
   - `TAVILY_API_KEY`=your_tavily_api_key
   - `HF_TOKEN`=your_huggingface_token
3. Run the app: `python app.py`

## Environment Variables

For deployment on Hugging Face Spaces, you need to set:
- `TAVILY_API_KEY`: Your Tavily API key for web search
- `HF_TOKEN`: Your Hugging Face access token for model access

These should be added as Secrets in your Space settings.