Search is hybrid: it combines full-text (keyword) matching with semantic (vector) similarity. Keyword matches are available the instant a message is created. Semantic matches depend on the message’s embedding, which is generated in the background, so a freshly created message may take a few seconds to surface in semantic results. If you need to assert on semantic results immediately after writing (for example in tests), wait briefly or poll.
Search Scopes
Workspace Search
Search across all content in your workspace - sessions, peers, and messages:Session Search
Search within a specific session’s conversation history:Peer Search
Search across all content associated with a specific peer:Filters and Limits
Get a specific number of results
You can specify the number of results you want to return by passing thelimit parameter to the search method. The default is 10 results, with a maximum of 100.
Get messages from a Peer in a specific Session
Combine Peer-level search with asession_id filter to get messages from a Peer in a specific Session.
items array of message objects:
Filter results by time range
Filter results by metadata
Best Practices
Handle Empty Results Gracefully
Conclusion
Honcho’s search functionality provides powerful discovery capabilities across your conversational data. By understanding how to:- Choose the appropriate search scope (workspace, session, or peer)
- Handle paginated results effectively
- Combine search with context building