Semantic Search Pack
★Trustedv1.0.0MIT★Gold Verified95by AgentNode · published 1 month ago · toolpack
Perform semantic similarity search over document collections.
Embeds queries and documents for cosine similarity search with FAISS.
Quick Start
agentnode install semantic-search-packRuns in a subprocess with filtered environment by default. Declared permissions are policy-checked, not sandboxed.
Usage
From packagefrom 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
Package installs and imports correctly. runtime checks passed. publisher tests passed.
This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.
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
Permissions
Declared by the publisher. Checked before execution by the policy gate.
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.
agentnode install semantic-search-packFiles (3)
License
MITStats
Compatibility
Frameworks
Runtime
pythonPython Version
>=3.10Trust & Security
Publisher
AgentNode
@agentnode