Spaces:
Build error
Build error
|
Download project/tutorial/tutorial.md from quinfer/rag-lite-app: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/spaces/quinfer/rag-lite-app/resolve/main/project/tutorial/tutorial.md
- Command line
-
hf download hf://spaces/quinfer/rag-lite-app/project/tutorial/tutorial.md
-
curl -L -o tutorial.md https://huggingface.co/spaces/quinfer/rag-lite-app/resolve/main/project/tutorial/tutorial.md
1.44 kB
A newer version of the Gradio SDK is available: 6.31.0
RAG-lite PDF Query App Tutorial
This tutorial will guide you through using the RAG-lite PDF Query App to extract insights from your PDF documents.
Getting Started
Upload a Document
- Click the "Upload PDF" button
- Select any PDF document from your computer
- The app will process the document and create searchable embeddings
Query Your Document
- Type your question in the query box
- The app will return the most relevant passages from your document
- You'll receive 3 most relevant text chunks as results
Sample Documents
In the sample_docs folder, you'll find two example documents:
financial_report.pdf: A sample financial reporttrading_document.pdf: A sample trading strategy document
Example Queries
Try these example queries with the sample documents:
For financial_report.pdf:
- "What were the key financial metrics for Q4?"
- "Describe the revenue growth trends"
For trading_document.pdf:
- "What are the main trading strategies discussed?"
- "Explain the risk management approach"
Tips for Better Results
- Be specific in your queries
- Use complete sentences for better semantic matching
- Try reformulating your question if the initial results aren't satisfactory
Limitations
- The app processes text in chunks of 500 characters
- Only text content is processed (images and tables are ignored)
- The app returns the 3 most relevant chunks per query