Search
The Search module provides local vector search capabilities for building knowledge bases that power SignalWire AI agents. It supports hybrid search combining vector similarity with keyword matching, multiple document formats, configurable chunking strategies, and both SQLite and PostgreSQL (pgvector) storage backends.
The search module requires additional dependencies not included in the base SDK install. Choose the install level that matches your use case:
For querying pre-built .swsearch indexes only (smallest footprint):
All classes and functions are imported from the signalwire.search namespace:
If the required dependencies are not installed, importing these names will raise an
ImportError with a message indicating which packages are missing.
The sw-search CLI tool provides command-line access to index building, validation,
and querying. See the sw-search CLI reference
for details.
Learn More
Hybrid search engine combining vector similarity with keyword matching.
Process and chunk documents for indexing with multiple strategies.
Build searchable indexes from document directories.
HTTP API service for serving search queries with authentication and caching.
Migrate search indexes between SQLite and pgvector backends.
Query preprocessing, document preprocessing, model alias resolution, and constants.