Skip to main content

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.
  • Graph Memory
  • Vector Memory
  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

If you prefer using the REST API directly:
curl -X GET "https://api.duohub.ai/memory" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "What is the main topic?",
    "memoryID": "your_memory_id",
    "facts": true,
    "assisted": true
  }'

Next Steps

Troubleshooting

  • Rate Limiting: Default limit is 100 requests per minute. Contact support for higher limits.
  • Timeout Errors: Try specifying a closer region or increasing the timeout setting.
  • Memory Not Found: Ensure your memory_id is correct and the ingestion completed successfully.
I