Skip to content

Commit 6457d91

Browse files
committed
add rag with docling
1 parent b65c821 commit 6457d91

File tree

7 files changed

+472
-0
lines changed

7 files changed

+472
-0
lines changed

rag_with_docling/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.web
2+
assets/external/
3+
*.db
4+
*.py[cod]
5+
__pycache__/

rag_with_docling/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Pynecone, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

rag_with_docling/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Chat with Excel Files using Docling and
2+
3+
Chat with Excel is an LLM app that utilizes **Retrieval Augmented Generation (RAG)** to enable meaningful interaction with Excel files. Powered by **DeepSeek-r1** running locally and [Docling Library](https://github.com/DS4SD/docling), the app provides accurate answers to your questions based on the content of the uploaded Excel file.
4+
5+
---
6+
7+
## Features
8+
- **Upload Excel Documents:** Easily upload any Excel document to start querying.
9+
- **Interactive Q&A:** Ask questions about the content of the uploaded Excel.
10+
- **Accurate Answers:** Get precise responses using RAG and the DeepSeek-r1 model.
11+
12+
---
13+
14+
## Getting Started
15+
16+
### 1. Clone the Repository
17+
Clone the GitHub repository to your local machine:
18+
```bash
19+
git clone https://github.com/reflex-dev/reflex-llm-examples.git
20+
cd reflex-llm-examples/rag_with_docling
21+
```
22+
23+
### 2. Install Dependencies
24+
Install the required dependencies:
25+
```bash
26+
pip install -r requirements.txt
27+
```
28+
29+
### 3. Pull and Run DeepSeek-r1 Using Ollama
30+
Download and set up the DeepSeek-r1 model locally:
31+
```bash
32+
ollama pull deepseek-r1:1.5b
33+
```
34+
35+
### 4. Run the Reflex App
36+
Run the application to start chatting with your Excel File:
37+
```bash
38+
reflex run
39+
```

rag_with_docling/chat/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)