Overview
ExuluContext represents a semantic search index that powers retrieval-augmented generation (RAG) in Exulu IMP. Each context maintains a collection of items with vector embeddings, enabling agents to query relevant information using natural language, keywords, or hybrid search.
Key features
Vector search
Semantic search with pgvector for similarity-based retrieval
Hybrid search
Combines vector similarity with full-text keyword search
Data sources
Scheduled data ingestion from external systems
Processors
Transform items before storage and embeddings generation
Auto tool generation
Automatically exposed as a tool for agents to use
Chunk expansion
Retrieve surrounding context chunks for better results
What is a context?
A context is a semantic search index that:- Stores structured data with custom fields (text, numbers, files, JSON, etc.)
- Generates embeddings using a configured embedder (OpenAI, Anthropic, etc.)
- Enables semantic search through vector similarity and full-text search
- Automatically becomes a tool that agents can call to retrieve information
- Manages data sources that periodically sync external data
Quick start
Architecture
Database structure
Each context creates two PostgreSQL tables:Items table
Items table
Stores the actual data items with your custom fields plus built-in fields:
id- UUID primary keyname- Item namedescription- Item descriptionexternal_id- Optional external identifier for syncingtags- Comma-separated tagscreated_by- User who created the itemrights_mode- Access control mode (private, public, restricted)embeddings_updated_at- Last embeddings generation timestampchunks_count- Number of embedding chunks- Your custom fields
Chunks table
Chunks table
Stores embedding chunks generated from items:
id- UUID primary keysource- Foreign key to items tablecontent- Text content of the chunkchunk_index- Position within the documentmetadata- JSON metadataembedding- Vector embedding (pgvector)fts- Full-text search index (tsvector)
Search methods
- Hybrid search
- Semantic search
- Keyword search
Combines semantic understanding with keyword matching. Best for most queries.
Core concepts
Fields
Define the structure of your items with typed fields:Field types include: text, number, boolean, date, json, file, and more. See the configuration guide for all available types.
Embedder
The embedder generates vector representations of your items:Sources
Data sources automatically sync external data into your context:Processor
Processors transform items before storage or embeddings generation:Usage patterns
As an agent tool
WhenenableAsTool: true, contexts automatically become tools that agents can call: