Knowledge base & retrieval
Retrieval grounding for the agent: the built-in pgvector knowledge base or an external HTTP search endpoint you own. Exactly one, selected by type.
One slot, two implementations
type: pgvector: the built-in knowledge base
type: pgvector: the built-in knowledge baseagent_config:
search:
type: pgvector
hostname: kb-postgres.internal.example.com
port: 5432
user: postgres
password: ${KB_PG_PASSWORD}
dbname: postgres
sslmode: require
collection: support_articles
content_key: content
metadata_filter:
kb_location: article
embedding_model: openai/text-embedding-3-small
embedding_dimensions: 1536
top_k: 5
prompt:
id: kb-rewrite-instructions
version: 3How a retrieval runs
Fields
Field
Type
Required
Default
Meaning
Contract with your indexing pipeline
type: external: bring your own search
type: external: bring your own searchRequest your endpoint receives
Response your endpoint must return
Fields
Field
Type
Required
Default
Meaning
Failure semantics: retrieval soft-fails
See also
Last updated
Was this helpful?

