Installation

The fastest way to get started with duohub is through our Python SDK:

pip install duohub

Authentication

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.

from duohub import Duohub

client = Duohub(api_key='YOUR_API_KEY')

Creating Your First Memory

Currently, data ingestion is handled through the dashboard interface. API-based ingestion will be available soon.

  1. Navigate to the Memory section in your dashboard
  2. Click the + icon to create a new memory
  3. Enter a name for your memory
  4. Select files to ingest:

    • Documents (PDF, Word, Text)
    • Web pages
    • Audio files
    • Video files
    • Entire websites
  5. Click Next to start processing

Querying Your Memory

Once you have your memory ID, you can start querying:

# Basic query
response = client.query(
    query="What is the main topic?",
    memoryID="your_memory_id"
)

# Query with supporting facts
response = 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.

Advanced Usage

Next Steps

Troubleshooting