Skip to main content

Semantic Search Pack

Trustedv1.0.0MITGold Verified95

by AgentNode · published 1 month ago · toolpack

Perform semantic similarity search over document collections.

Embeds queries and documents for cosine similarity search with FAISS.

langchaincrewaigeneric

Quick Start

bash
agentnode install semantic-search-pack

Runs in a subprocess with filtered environment by default. Declared permissions are policy-checked, not sandboxed.

Usage

From package
python
from semantic_search_pack.tool import run

# Index a collection of support articles
result = run(
    action="index",
    documents=[
        {"id": "doc-1", "text": "To reset your password, click 'Forgot Password' on the login page and follow the email instructions.", "metadata": {"category": "account"}},
        {"id": "doc-2", "text": "Billing cycles run from the 1st to the last day of each month. Invoices are generated on the 2nd.", "metadata": {"category": "billing"}},
        {"id": "doc-3", "text": "Our API rate limit is 1000 requests per minute per API key. Contact support to request a limit increase.", "metadata": {"category": "api"}},
        {"id": "doc-4", "text": "Two-factor authentication can be enabled under Settings > Security. We support TOTP and SMS.", "metadata": {"category": "account"}},
        {"id": "doc-5", "text": "To cancel your subscription, go to Settings > Billing > Cancel Plan. Cancellation takes effect at period end.", "metadata": {"category": "billing"}}
    ],
    index_name="support-kb"
)
print(f"Indexed {result['document_count']} documents")

# Search by meaning
search_result = run(
    action="semantic_search",
    query="How do I change my password?",
    index_name="support-kb",
    top_k=3
)

for match in search_result["results"]:
    print(f"  [{match['score']:.3f}] {match['id']}: {match['text'][:80]}...")

Runs locally on your machine. No execution data is sent to AgentNode. Permissions are checked before execution. Learn how this works

Verification

high confidence95/100★ Gold Verified
smokeReturned valid result
+25/25
testsPublisher-provided tests passed
+15/15
importAll tools imported successfully
+15/15
installInstalled in 34.6s
+15/15
contractAll contract checks passed
+10/10
determinismConsistent output across runs (normalized)
+5/5
reliability3/3 runs passed
+10/10

Package installs and imports correctly. runtime checks passed. publisher tests passed.

install34.6s
import881ms
smoke32.1s
tests25.3s

This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.

Python 3.12.3ffmpegpopplertesseractuv

Last verified 13d ago· Runner v2.0.0

Use this when you need to...

  • Search a document collection by meaning rather than exact keywords
  • Build a knowledge base with cosine similarity retrieval over embeddings
  • Find the most relevant FAQ answers for a given customer question
  • Index and query technical documentation for RAG-powered chatbots
  • Deduplicate content by finding semantically similar passages

README

Version History

Capabilities

semantic_searchsemantic_searchtool

Permissions

Declared by the publisher. Checked before execution by the policy gate.

Networknone
Filesystemtemp
Code Executionnone
Data Accessinput_only
User Approvalnever

Permissions are policy-checked before execution. Network and filesystem access are not sandboxed at runtime. Learn more

Privacy

All tool execution happens locally on your machine. AgentNode never receives:

  • • Tool inputs or outputs
  • • Execution logs
  • • Data your agent processes

Only install events and search queries are sent to the registry.

bash
agentnode install semantic-search-pack

Files (3)

License

MIT

Stats

Downloads0
Installs0
Versionv1.0.0
Published3/16/2026
Channelstable
Typetoolpack
Entrypointsemantic_search_pack.tool

Compatibility

Frameworks

langchaincrewaigeneric

Runtime

python

Python Version

>=3.10

Trust & Security

PublisherTrusted
SignatureNone
ProvenanceNone
Security Issues0

Publisher

A

AgentNode

@agentnode