amd-gaia 0.14.1__py3-none-any.whl → 0.14.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- amd_gaia-0.14.2.dist-info/METADATA +220 -0
- {amd_gaia-0.14.1.dist-info → amd_gaia-0.14.2.dist-info}/RECORD +32 -32
- gaia/agents/base/agent.py +32 -4
- gaia/agents/base/console.py +1 -1
- gaia/agents/chat/agent.py +5 -28
- gaia/agents/code/orchestration/checklist_executor.py +26 -2
- gaia/agents/code/orchestration/checklist_generator.py +7 -3
- gaia/agents/code/orchestration/orchestrator.py +64 -44
- gaia/agents/code/orchestration/steps/error_handler.py +1 -1
- gaia/agents/code/orchestration/template_catalog.py +7 -1
- gaia/agents/code/prompts/code_patterns.py +128 -17
- gaia/agents/code/tools/code_formatting.py +1 -1
- gaia/agents/code/tools/code_tools.py +1 -1
- gaia/agents/code/tools/web_dev_tools.py +16 -1
- gaia/apps/summarize/pdf_formatter.py +1 -1
- gaia/audio/audio_client.py +2 -2
- gaia/audio/kokoro_tts.py +2 -2
- gaia/audio/whisper_asr.py +2 -2
- gaia/chat/sdk.py +1 -1
- gaia/cli.py +16 -16
- gaia/eval/batch_experiment.py +1 -1
- gaia/eval/claude.py +4 -4
- gaia/llm/llm_client.py +1 -1
- gaia/rag/demo.py +5 -5
- gaia/rag/pdf_utils.py +1 -1
- gaia/rag/sdk.py +2 -2
- gaia/talk/sdk.py +1 -1
- gaia/version.py +1 -1
- amd_gaia-0.14.1.dist-info/METADATA +0 -768
- {amd_gaia-0.14.1.dist-info → amd_gaia-0.14.2.dist-info}/WHEEL +0 -0
- {amd_gaia-0.14.1.dist-info → amd_gaia-0.14.2.dist-info}/entry_points.txt +0 -0
- {amd_gaia-0.14.1.dist-info → amd_gaia-0.14.2.dist-info}/licenses/LICENSE.md +0 -0
- {amd_gaia-0.14.1.dist-info → amd_gaia-0.14.2.dist-info}/top_level.txt +0 -0
gaia/rag/demo.py
CHANGED
|
@@ -85,7 +85,7 @@ def demo_basic_rag():
|
|
|
85
85
|
print(
|
|
86
86
|
"1. Activate environment: source .venv/bin/activate (Linux/macOS) or .\\.venv\\Scripts\\Activate.ps1 (Windows)"
|
|
87
87
|
)
|
|
88
|
-
print(
|
|
88
|
+
print('2. Install RAG dependencies: uv pip install -e ".[rag]"')
|
|
89
89
|
print("3. Either use the test PDF or get your own PDF file")
|
|
90
90
|
print("4. Run: answer = quick_rag('document.pdf', 'What is this about?')")
|
|
91
91
|
|
|
@@ -123,10 +123,10 @@ def demo_basic_rag():
|
|
|
123
123
|
print(" .\\.venv\\Scripts\\Activate.ps1")
|
|
124
124
|
print(" ")
|
|
125
125
|
print(" # Install RAG extras")
|
|
126
|
-
print(
|
|
126
|
+
print(' uv pip install -e ".[rag]"')
|
|
127
127
|
print(" ")
|
|
128
128
|
print(" # Or install dependencies individually:")
|
|
129
|
-
print(" pip install pypdf sentence-transformers faiss-cpu")
|
|
129
|
+
print(" uv pip install pypdf sentence-transformers faiss-cpu")
|
|
130
130
|
|
|
131
131
|
print("\n" + "=" * 60)
|
|
132
132
|
|
|
@@ -215,7 +215,7 @@ def demo_error_handling():
|
|
|
215
215
|
|
|
216
216
|
except ImportError as e:
|
|
217
217
|
print(f"❌ Missing dependencies: {e}")
|
|
218
|
-
print(
|
|
218
|
+
print('Install with: uv pip install -e ".[rag]"')
|
|
219
219
|
|
|
220
220
|
print("-" * 40)
|
|
221
221
|
|
|
@@ -290,7 +290,7 @@ def main():
|
|
|
290
290
|
print("1. Activate virtual environment:")
|
|
291
291
|
print(" Linux/macOS: source .venv/bin/activate")
|
|
292
292
|
print(" Windows: .\\.venv\\Scripts\\Activate.ps1")
|
|
293
|
-
print(
|
|
293
|
+
print('2. Install RAG dependencies: uv pip install -e ".[rag]"')
|
|
294
294
|
print("3. Get a PDF document to test with")
|
|
295
295
|
print("4. Try the CLI commands: gaia rag --help")
|
|
296
296
|
print("5. Use RAG in Python: from gaia.rag.sdk import RAGSDK, quick_rag")
|
gaia/rag/pdf_utils.py
CHANGED
|
@@ -129,7 +129,7 @@ def extract_images_from_page_pymupdf(pdf_path: str, page_num: int) -> List[dict]
|
|
|
129
129
|
doc.close()
|
|
130
130
|
|
|
131
131
|
except ImportError:
|
|
132
|
-
logger.error("PyMuPDF not installed. Install: pip install pymupdf")
|
|
132
|
+
logger.error("PyMuPDF not installed. Install: uv pip install pymupdf")
|
|
133
133
|
except Exception as e:
|
|
134
134
|
logger.error(f"Error extracting images from page {page_num}: {e}")
|
|
135
135
|
|
gaia/rag/sdk.py
CHANGED
|
@@ -175,9 +175,9 @@ class RAGSDK:
|
|
|
175
175
|
error_msg = (
|
|
176
176
|
f"\n❌ Error: Missing required RAG dependencies: {', '.join(missing)}\n\n"
|
|
177
177
|
f"Please install the RAG dependencies:\n"
|
|
178
|
-
f
|
|
178
|
+
f' uv pip install -e ".[rag]"\n\n'
|
|
179
179
|
f"Or install packages directly:\n"
|
|
180
|
-
f" pip install {' '.join(missing)}\n"
|
|
180
|
+
f" uv pip install {' '.join(missing)}\n"
|
|
181
181
|
)
|
|
182
182
|
raise ImportError(error_msg)
|
|
183
183
|
|
gaia/talk/sdk.py
CHANGED
|
@@ -360,7 +360,7 @@ class TalkSDK:
|
|
|
360
360
|
return True
|
|
361
361
|
except ImportError:
|
|
362
362
|
self.log.warning(
|
|
363
|
-
'RAG dependencies not available. Install with: pip install -e ".[rag]"'
|
|
363
|
+
'RAG dependencies not available. Install with: uv pip install -e ".[rag]"'
|
|
364
364
|
)
|
|
365
365
|
return False
|
|
366
366
|
except Exception as e:
|