File size: 1,210 Bytes
d71fe36
 
 
 
 
 
 
 
 
 
957a253
7613242
957a253
7613242
957a253
2e3966c
 
 
 
 
443508b
8df091a
443508b
2e3966c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
54
55
56
57
58
---
title: LLM Powered AI Assistant
emoji: πŸ³οΈβ€πŸŒˆ
colorFrom: gray
colorTo: green
sdk: docker
app_port: 7860
---


# LLM Powered AI Assistant
This project is a personal data assistant using a Large Language Model (LLM) to process and answer questions related to uploaded PDF documents.

https://huggingface.co/spaces/0xdant/llm-ai-assistant

## Features
- Upload PDF documents for analysis
- Interactive chat interface
- Toggle between light and dark modes


![LLM-flow.png](https://github.com/dtkmn/llm-ai-assistant/blob/main/LLM-flow.png)

## Installation

1. Clone the repository:
    
    ```bash
    git clone https://github.com/dtkmn/llm-ai-assistant.git
    cd llm-ai-assistant
    ``` 

2. Install the dependencies:

    ```bash
    pip install -r requirements.txt
    ```

3. Set up your environment variables (create a .env file):    

    ```bash
    export HUGGINGFACEHUB_API_TOKEN=your_token_here
    ```

4. Run the application:

    ```bash
    python src/app.py
    ```

## Usage
- Open your browser and go to `http://localhost:5000`
- Upload a PDF document and interact with the chat interface.

## Contributing
Feel free to submit issues and pull requests. Contributions are welcome!