v0.2.8
Bug Fix
Fix PgSearchIndex not persisting vectors when using RAGConfig.withSearchIndex
When RAGConfig.withSearchIndex(pgSearchIndex) was called, only the searchIndex field was set - pgVectorConnectionString remained None. This caused RAG.createHybridSearcher() to create an in-memory store, resulting in vectors not being persisted to PostgreSQL.
Changes:
- Add
pgConfigmethod toSearchIndextrait to optionally expose DB config - Implement
pgConfiginPgSearchIndexto return its configuration - Modify
RAGConfig.withSearchIndexto auto-configure pgVector settings when aPgSearchIndexis provided - Add
RAGWithSearchIndexBugSpectests to validate the fix
Impact: Users can now use RAGConfig.withSearchIndex(pgSearchIndex) and have both permission-aware methods AND regular ingest/query methods use the same PostgreSQL database for vector storage.