Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

ArangoDocumentStore

Store and retrieve documents using ArangoDB, a multi-model database with native vector similarity search. Vector search requires ArangoDB 3.12 or later.

Key Features

  • Stores documents in an ArangoDB collection with vector search support.
  • Supports cosine, dot product, and L2 similarity functions.
  • Creates the database and collection automatically if they do not exist.
  • Configurable embedding dimensions to match your embedding model.
  • Supports Haystack metadata filters at retrieval time.

Configuration

Add Workspace-Level Integration

  1. Click your profile icon and choose Settings.
  2. Go to Workspace>Integrations.
  3. Find the provider you want to connect and click Connect next to them.
  4. Enter the API key and any other required details.
  5. Click Connect. You can use this integration in pipelines and indexes in the current workspace.

Add Organization-Level Integration

  1. Click your profile icon and choose Settings.
  2. Go to Organization>Integrations.
  3. Find the provider you want to connect and click Connect next to them.
  4. Enter the API key and any other required details.
  5. Click Connect. You can use this integration in pipelines and indexes in all workspaces in the current organization.
  1. Install and run ArangoDB 3.12 or later (default endpoint: http://localhost:8529).
  2. Set the ARANGO_USERNAME and ARANGO_PASSWORD environment variables. For instructions, see Create Secrets.
  3. Configure the ArangoDocumentStore in your pipeline YAML with the appropriate connection parameters.

Source Code

To check this component's source code, open document_store.py in the Haystack Core Integrations repository.

Usage Examples

Basic Configuration

  ArangoDocumentStore:
type: haystack_integrations.document_stores.arangodb.document_store.ArangoDocumentStore
init_parameters:
host: http://localhost:8529
database: haystack
username:
type: env_var
env_vars:
- ARANGO_USERNAME
strict: false
password:
type: env_var
env_vars:
- ARANGO_PASSWORD
strict: false
collection_name: haystack_documents
embedding_dimension: 768
similarity_function: cosine

Parameters

Init Parameters

These are the parameters you can configure in Pipeline Builder:

ParameterTypeDefaultDescription
hoststrhttp://localhost:8529The URL of the ArangoDB server.
databasestrhaystackThe name of the database to use. Created if it does not exist.
usernameSecretSecret.from_env_var("ARANGO_USERNAME", strict=False)The ArangoDB username. Falls back to root if the variable is not set.
passwordSecretSecret.from_env_var("ARANGO_PASSWORD")The ArangoDB password.
collection_namestrhaystack_documentsThe name of the collection to store documents in.
embedding_dimensionint768The dimensionality of document embeddings. Must match your embedding model's output.
recreate_collectionboolFalseWhether to drop and recreate the collection on startup.
similarity_functionstrcosineThe vector similarity function. One of cosine, dot_product, or l2.