Skip to content
🚀 EDDI 6.7.1

Team budgets, tool-call guardrails and cost accounting, now with the Java4Shell fix in the shipped imagesWhat's new

Managed Cloud Get Started
All integrations
Data and RAGstoreType: pgvector

pgvector

PostgreSQL with pgvector as the vector store for an EDDI knowledge base. The recommended persistent choice when you already run PostgreSQL.

What you get

  • A knowledge base inside a database you already back up and operate
  • Verified document replacement on re-ingestion
  • The same agent configuration as every other store, with only the store parameters changing

How it works in EDDI

  1. Enable the pgvector extension in PostgreSQL and create a database and user.
  2. Create a RagConfiguration with storeType: "pgvector", the connection details, a table and the vector dimension.
  3. Bind it with an eddi://ai.labs.rag workflow step.
  4. Select it by name in the LLM task and ingest documents.

Configuration

Taken from the EDDI documentation. Placeholders such as your-agent-id are yours to replace.

RagConfiguration (POST /ragstore/rags)The dimension must match your embedding model. 1536 matches text-embedding-3-small.
{
  "name": "product-docs",
  "embeddingProvider": "openai",
  "embeddingParameters": {
    "model": "text-embedding-3-small",
    "apiKey": "${vault:openai-key}"
  },
  "storeType": "pgvector",
  "storeParameters": {
    "host": "localhost",
    "port": 5432,
    "database": "eddi",
    "user": "eddi",
    "password": "${vault:pg-password}",
    "table": "product_docs",
    "dimension": 1536
  },
  "chunkStrategy": "recursive",
  "chunkSize": 512,
  "chunkOverlap": 64,
  "maxResults": 5,
  "minScore": 0.6
}
workflow step + langchain.json taskBinding the knowledge base to the agent and using it in a task.
// 1. workflow step: binds the knowledge base to the agent
{ "type": "eddi://ai.labs.rag",
  "extensions": {},
  "config": { "uri": "eddi://ai.labs.rag/ragstore/rags/{ragId}?version=1" } }

// 2. LLM task: selects it by the "name" of the RagConfiguration
{ "tasks": [{
    "actions": ["*"],
    "type": "openai",
    "knowledgeBases": [{ "name": "product-docs", "maxResults": 5, "minScore": 0.7 }],
    "parameters": { "systemMessage": "You are a helpful assistant." }
} ] }

Governance

  • The database password is a required parameter. Keep it as a vault reference.
  • Your existing PostgreSQL access control and backups apply to the vectors.
  • Embedding calls send document text to the embedding provider you configure.

Good to know

  • The in-memory store is for development: it empties after 30 minutes without a query and on restart. A persistent store such as pgvector is the production choice.

Related integrations

Configuration and behavior on this page follow the EDDI documentation, checked on 2026-11-06. Field names and defaults can change between releases, so confirm them in the docs for your version.