Learn how to retrieve cached peer knowledge and understanding using Honcho’s working representation system
Working representations are Honcho’s system for accessing cached psychological models that capture what peers know, think, and remember. Unlike the chat()
method which generates fresh representations on-demand, the working_rep()
method retrieves pre-computed representations that have been automatically built and stored as conversations progress.
Working representations are automatically generated and cached through Honcho’s background processing system:
Automatic Generation: When messages are added to sessions, they trigger background jobs that analyze conversations using theory of mind inference and long-term memory integration
Cached Storage: The generated representations are stored in the database as metadata on Peer
objects (for global representations) or SessionPeer
objects (for session-scoped representations)
Retrieval: The working_rep()
method provides fast access to these cached representations without requiring LLM processing
Cached vs On-Demand: working_rep()
retrieves cached representations for fast access, while peer.chat()
generates fresh representations using the dialectic system. Use working_rep()
when you need fast access to stored knowledge, and chat()
when you need current analysis with custom queries.
Working representations are accessed through the working_rep()
method on Session objects:
Cached working representations contain structured psychological analysis based on conversation history. The format typically includes:
Information about what the peer is currently thinking, feeling, or focused on based on recent messages.
Facts about the peer that have been extracted and stored over time from various conversations.
Working representations are automatically updated through Honcho’s background processing system:
session.add_messages()
or similar methodsRepresentations are updated when:
Understanding when to use working_rep()
vs peer.chat()
:
working_rep()
when:peer.chat()
when:Make sure that a representation exists before processing it by using the chat endpoint first.
Cached representations are ideal for analytics dashboards:
Use cached representations for baseline understanding, and fresh analysis for current insights:
Working representations provide fast access to cached psychological models that Honcho automatically builds and maintains. By understanding how to:
session.working_rep()
You can build efficient applications that leverage Honcho’s continuous learning about peer knowledge and mental states without the latency of real-time generation.
Learn how to retrieve cached peer knowledge and understanding using Honcho’s working representation system
Working representations are Honcho’s system for accessing cached psychological models that capture what peers know, think, and remember. Unlike the chat()
method which generates fresh representations on-demand, the working_rep()
method retrieves pre-computed representations that have been automatically built and stored as conversations progress.
Working representations are automatically generated and cached through Honcho’s background processing system:
Automatic Generation: When messages are added to sessions, they trigger background jobs that analyze conversations using theory of mind inference and long-term memory integration
Cached Storage: The generated representations are stored in the database as metadata on Peer
objects (for global representations) or SessionPeer
objects (for session-scoped representations)
Retrieval: The working_rep()
method provides fast access to these cached representations without requiring LLM processing
Cached vs On-Demand: working_rep()
retrieves cached representations for fast access, while peer.chat()
generates fresh representations using the dialectic system. Use working_rep()
when you need fast access to stored knowledge, and chat()
when you need current analysis with custom queries.
Working representations are accessed through the working_rep()
method on Session objects:
Cached working representations contain structured psychological analysis based on conversation history. The format typically includes:
Information about what the peer is currently thinking, feeling, or focused on based on recent messages.
Facts about the peer that have been extracted and stored over time from various conversations.
Working representations are automatically updated through Honcho’s background processing system:
session.add_messages()
or similar methodsRepresentations are updated when:
Understanding when to use working_rep()
vs peer.chat()
:
working_rep()
when:peer.chat()
when:Make sure that a representation exists before processing it by using the chat endpoint first.
Cached representations are ideal for analytics dashboards:
Use cached representations for baseline understanding, and fresh analysis for current insights:
Working representations provide fast access to cached psychological models that Honcho automatically builds and maintains. By understanding how to:
session.working_rep()
You can build efficient applications that leverage Honcho’s continuous learning about peer knowledge and mental states without the latency of real-time generation.