Quickstart

  1. Initialize the orchestrator
    const orchestrator = new XmemOrchestrator();
  2. Register your providers
    orchestrator.registerProvider(class="text-amber-300">'vector', class="text-amber-300">'chromadb', new ChromaDBAdapter({ url: class="text-amber-300">'http:class="text-slate-400">//localhost:8000', collection: class="text-amber-300">'my_collection' }));
    orchestrator.registerProvider(class="text-amber-300">'llm', class="text-amber-300">'llama', new LlamaCppAdapter({ apiUrl: class="text-amber-300">'http:class="text-slate-400">//localhost:8080' }));
  3. Query with context
    const response = await orchestrator.query({ input: class="text-amber-300">'What is xmem?', sessionId: class="text-amber-300">'demo-session' });