Spaces:
Configuration error
Configuration error
files pushed
Browse files
README.md
CHANGED
|
@@ -9,4 +9,31 @@ license: mit
|
|
| 9 |
short_description: The JARVIS (Just A Rather Very Intelligent System) project
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
short_description: The JARVIS (Just A Rather Very Intelligent System) project
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Jarvis Gaia Agent
|
| 13 |
+
|
| 14 |
+
A Python-based AI agent leveraging `langchain`, `duckduckgo-search`, and `pytesseract` to perform web searches, document parsing, and multi-hop query refinement. Deployed as a Hugging Face Space for interactive use.
|
| 15 |
+
|
| 16 |
+
## Features
|
| 17 |
+
|
| 18 |
+
- **Web Search**: Performs asynchronous searches using DuckDuckGo.
|
| 19 |
+
- **Multi-Hop Search**: Refines complex queries iteratively with OpenAI's GPT-4o.
|
| 20 |
+
- **Document Parsing**: Extracts text from PDFs and images using `PyPDF2` and `pytesseract`.
|
| 21 |
+
- **Modular Tools**: Includes calculator, file parser, and document retriever.
|
| 22 |
+
- **Observability**: Integrated with Langfuse for monitoring.
|
| 23 |
+
|
| 24 |
+
## Prerequisites
|
| 25 |
+
|
| 26 |
+
- Python 3.11
|
| 27 |
+
- Tesseract OCR (`brew install tesseract` on macOS)
|
| 28 |
+
- API keys for:
|
| 29 |
+
- OpenAI (`OPENAI_API_KEY`)
|
| 30 |
+
- Hugging Face (`HUGGINGFACEHUB_API_TOKEN`)
|
| 31 |
+
- Groq (`GROQ_API_KEY`)
|
| 32 |
+
- Langfuse (`LANGFUSE_PUBLIC_KEY`, `LANGFUSE_SECRET_KEY`, `LANGFUSE_HOST`)
|
| 33 |
+
|
| 34 |
+
## Setup
|
| 35 |
+
|
| 36 |
+
1. **Clone the Repository**:
|
| 37 |
+
```bash
|
| 38 |
+
git clone https://github.com/your-username/jarvis_gaia_agent.git
|
| 39 |
+
cd jarvis_gaia_agent
|