For production-level use, Honcho offers two powerful ways to leverage ambient personalization: our managed platform and our open source solution. Read further if you want to explore the quickstart demo.
Add some conversation messages. Honcho automatically learns from these interactions:
Copy
session.add_messages([ alice.message("Hi Bob, how are you?"), bob.message("I'm good, thank you!"), alice.message("What are you doing today after work?"), bob.message("I'm going to the gym! I've been trying to get back in shape."), alice.message("That's great! I should probably start exercising too."), bob.message("You should! I find that evening workouts help me relax."),])
Now ask Honcho what it’s learned - this is where the magic happens:
Copy
# Ask what Bob is likeresponse = alice.chat("Tell me about Bob's interests and habits")print(response)# Returns rich context like:# "Bob is health-conscious and has been working on getting back in shape. # He regularly goes to the gym, particularly in the evenings, and finds # exercise helps him relax. He's encouraging about fitness and willing # to share advice about workout routines."