Skip to main content

Semantic Search Pack

TrustedSandbox optionalv1.0.0MITVerified80

by AgentNode · published 3 months 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 confidence80/100✔ Verified
smokeReturned valid result
+25/25
testsTests failed
0/15
importAll tools imported successfully
+15/15
installInstalled in 39.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.

install39.6s
import141ms
smoke36.1s
tests1.4s

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

Verified in real_auto mode

Python 3.12.3ffmpegpopplertesseractuv

Last verified 5h 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

Sandbox optionalFrom a trusted publisher — runs on the host by default. You can require isolation with sandbox.host_trust_policy.

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. For trusted and curated packages that run on the host, network and filesystem access are policy-checked but not OS-sandboxed. When runtime isolation is required for untrusted/community code, AgentNode uses sandbox-or-fail-closed if the required container runtime and pinned image are available. 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