Developer Docs
Developer Quickstart
Learn how to hook up PayQIA's persistent semantic memory infrastructure to your AI agent or application.
💡 Want to learn how the underlying engine works? Read the theoretical foundations and tensor mapping logic on the Haqikos QIA Engine Page.
1. Installation
Install our official client libraries for your environment:
# Install TypeScript SDK
npm install payqia
2. Initialization
Initialize the memory client with your API key:
import PayQIA from "payqia";
const client = new PayQIA({
apiKey: process.env.PAYQIA_API_KEY
});3. Explicit Mode
Add precise memory points directly into the user context profile log:
// Save direct memory point
await client.document.add({
content: "User prefers dark mode and UPI payment option.",
containerTag: "user_session_4821"
});4. Graph Mode
Let PayQIA autonomously extract facts, build knowledge graphs, and resolve entities:
// Resolve structured entities
const graph = await client.graph.resolve({
containerTag: "user_session_4821"
});