#1595·guardrails

1.0.0: delete embedding, vectordb, document_store, and text2sql (move to validators)

Author: zsimjeeCreated Jul 24, 2026Updated Sep 23, 2026
LabelsStale

Target: 1.0.0. Delete the embedding / vector-store / document-store / text2sql surface outright. Anything needing embeddings or retrieval belongs in a validator package, which brings its own dependencies — that is what the hub model is for.

Follows from the Option A decision in #1594 (LiteLLM only).

Why delete rather than migrate to litellm.embedding()

We considered porting OpenAIEmbedding onto LiteLLM. It isn't worth it: the entire chain has exactly one consumer.

  • guardrails/embedding.py → used only by guardrails/vectordb/
  • guardrails/vectordb/ (base.py, faiss.py) → used only by guardrails/document_store.py and text2sql.py
  • guardrails/document_store.py → used only by text2sql.py
  • guardrails/applications/ contains only text2sql.py and text2sql.rail — and the .rail file dies with #1590 regardless

None of it is exported from guardrails/__init__.py. Migrating would be work to preserve a 2023-era demo app. If an embedding need returns later, LiteLLM is the obvious backing then.

Delete

  • guardrails/embedding.py — EmbeddingBase, OpenAIEmbedding, ManifestEmbedding
  • guardrails/vectordb/ — base.py, faiss.py
  • guardrails/document_store.py
  • guardrails/applications/ — the whole package (text2sql.py, text2sql.rail)
  • guardrails/utils/sql_utils.py (create_sql_driver, sole consumer is text2sql)
  • guardrails/utils/openai_utils/ — OpenAIClient/OpenAIClientV1 exists only to serve embedding.py. Note streaming_utils.py in the same package already has zero consumers — dead code today.
  • DOCUMENT_STORE_KEY in guardrails/stores/context.py

The only non-trivial logic being lost is _len_safe_get_embedding (embedding.py:40) — tiktoken chunking plus numpy averaging for over-long inputs. Worth knowing it existed if we ever rebuild embeddings; a validator that needs it can reimplement.

Dependencies dropped

  • sql extra — sqlvalidator, sqlalchemy, sqlglot
  • vectordb extra — faiss-cpu, numpy
  • manifest extra — manifest-ml (with ManifestCallable/ManifestEmbedding gone per #1594)
  • openai can leave core deps. After this and #1594, our only remaining direct openai import is in text2sql.py, which is being deleted. LiteLLM becomes the single LLM dependency — the slimmest form of the Option A decision (tenant 3).

Adjacent, flagged not decided

  • The anthropic extra (anthropic>=0.7.2,<1.0.0) is already vestigial — there is no Anthropic callable, and under Option A LiteLLM handles Anthropic. Probably deletable.
  • The llama and databricks extras back real integrations (integrations/llama_index/ query + chat engines, integrations/databricks/ml_flow_instrumentor.py), not this chain. Out of scope here, but they are the same category of question: do first-party framework integrations survive 1.0, or do they move out of the core package?

Source: guardrails-ai/guardrails