Skip to main content
agentscope-extensions-rag-haystack connects AgentScope to a HayStack RAG service. Document management and indexing happen on the HayStack side; AgentScope only invokes its retrieval API.

When to use

  • You already run RAG on HayStack (indexing pipeline, ChromaDB, rerankers, etc.).
  • You want to reuse HayStack’s end-to-end retrieval capability.

Add the dependency

Quickstart

Wire into an Agent

Document management is not handled here

addDocuments(...) throws UnsupportedOperationException. To add or update documents:
  1. Place source files in HayStack’s pipeline source directory.
  2. Trigger / re-run HayStack’s indexing pipeline.
  3. Once indexing completes, this plugin can retrieve the new documents.
This separation prevents inconsistent indexing states across two sides.

Key parameters

HayStackConfig also exposes timeouts, custom headers, and API keys to fit your HayStack deployment’s auth scheme.