This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Run a vectorless RAG demo with PageIndex and Hermes Agent. | |
| This module demonstrates a document question-answering workflow that avoids | |
| vector embeddings and chunk-based similarity search. Instead, PageIndex | |
| provides a hierarchical representation of the document, and Hermes Agent uses | |
| custom tools to inspect the structure, fetch metadata, and read selected pages | |
| before answering a question. | |
| The registered Hermes tools are: | |
| get_document: Returns document metadata such as status and page count. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Implementation of the Selenium Chrome WebDriver with HTTP Response data | |
| included via the ChromeDriver performance logging capability | |
| """ | |
| import json | |
| from requests.structures import CaseInsensitiveDict | |
| # https://github.com/SeleniumHQ/selenium | |
| from selenium import webdriver |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import codecs | |
| import urllib3 | |
| import gzip | |
| from pathlib import Path | |
| # CChardet is faster and can be more accurate | |
| try: | |
| import cchardet as chardet | |
| except ImportError: |