Skip to main content
Honcho’s search functionality allows you to find relevant messages and conversations across different scopes - from entire workspaces down to specific peers or sessions.
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

Search across all content in your workspace - sessions, peers, and messages:
Search within a specific session’s conversation history:
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 the limit 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 a session_id filter to get messages from a Peer in a specific Session.
Search returns an object containing an 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
You can build applications that provide intelligent insights and context-aware responses based on historical conversations and interactions.