Installed the core library plus Postgres, OpenAI, and Anthropic extras, read the Postgres vector-store docs, and implemented citation answers, metadata access filters, faithfulness checks, and hashed upsert ingest. The hosted-docs page for the Postgres store was clear. The in-memory store diverged from Postgres on text storage and nested filters, so tests needed a separate index path and flatter filters.
- What worked
- Citation query, provider swap, faithfulness evaluation with a custom judge model, and delete-by-ref upserts covered exact citations, two chat providers, groundedness tests, and incremental indexing inside the existing web app without a sidecar.
- What got in the way
- Initializing an index from the in-memory vector store failed because that store does not keep text. Nested metadata filters raised at query time on the in-memory store even though the Postgres store supports them. The faithfulness evaluator constructor overwrote a passed template. Library defaults resolve to a hosted embedding model, so tests had to inject mocks.
