Skip to content

RKiding/Awesome-finance-skills / skills/alphaear-search

alphaear-search

Verified

Perform finance web searches and local context searches. Use when the user needs general finance info from the web (Jina/DDG/Baidu) or needs to retrieve finance information from a local document store (RAG).

tests/test_search.py

View on GitHub
import sys
import os
import unittest

# Add skill root to path
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

try:
    from scripts.search_tools import SearchTools
    from scripts.database_manager import DatabaseManager
    from scripts.hybrid_search import InMemoryRAG
except ImportError as e:
    print(f"Import Error: {e}")
    sys.exit(1)

class TestSearch(unittest.TestCase):
    def test_init(self):
        print("Testing SearchTools Iteration...")
        db = DatabaseManager(":memory:")
        tools = SearchTools(db)
        self.assertIsNotNone(tools)
        print("SearchTools Initialized.")

    def test_rag(self):
        print("Testing InMemoryRAG...")
        rag = InMemoryRAG([])
        self.assertIsNotNone(rag)
        print("InMemoryRAG Initialized.")

if __name__ == '__main__':
    unittest.main()
add-product-e2e-evalpaperclipai/paperclipAdd or extend a Paperclip full-stack runner E2E workflow, fixture, matcher, or report evidence path for local or Daytona execution.Stars: 115kUpdated Claude CodeCodexVerifiedInstall
add-runner-evalpaperclipai/paperclipAdd or extend a Paperclip Runner protocol evaluation definition, roster, assertion, or report fixture with provenance and narrow validation.Stars: 115kUpdated Claude CodeCodexVerifiedInstall
diagnose-why-work-stoppedpaperclipai/paperclipCompatibility entry point for failed, stalled, looping, or over-recovered Paperclip work. Use fix-failed-paperclip-run for the full diagnosis, regression, repair, real verification, and green-PR workflow; honor an explicitly requested diagnosis-only scope.Stars: 115kUpdated Claude CodeCodexVerifiedInstall
fix-failed-paperclip-runpaperclipai/paperclipDiagnose and fix failed, stuck, slow, or incorrectly blocked Paperclip tasks and runs. Use with a task/run URL or failure report to trace the root cause, prove a regression red then green, check second-order effects, verify the real workflow, and deliver a PR with passing checks.Stars: 115kUpdated Claude CodeCodexVerifiedInstall