Sign up at app.duohub.ai to get your API key. You’ll need this to authenticate your requests. You can find your API key by clicking Accounts on the bottom left.
Copy
from duohub import Duohubclient = Duohub(api_key='YOUR_API_KEY')
Once you have your memory ID, you can start querying:
Copy
# Basic queryresponse = client.query( query="What is the main topic?", memoryID="your_memory_id")# Query with supporting factsresponse = client.query( query="What is the main topic?", memoryID="your_memory_id", facts=True, assisted=True)
The assisted=True parameter enables AI-powered response formatting.