1.0.0: delete embedding, vectordb, document_store, and text2sql (move to validators)
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 byguardrails/vectordb/guardrails/vectordb/(base.py,faiss.py) → used only byguardrails/document_store.pyandtext2sql.pyguardrails/document_store.py→ used only bytext2sql.pyguardrails/applications/contains onlytext2sql.pyandtext2sql.rail— and the.railfile 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,ManifestEmbeddingguardrails/vectordb/—base.py,faiss.pyguardrails/document_store.pyguardrails/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/OpenAIClientV1exists only to serveembedding.py. Notestreaming_utils.pyin the same package already has zero consumers — dead code today.DOCUMENT_STORE_KEYinguardrails/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
sqlextra —sqlvalidator,sqlalchemy,sqlglotvectordbextra —faiss-cpu,numpymanifestextra —manifest-ml(withManifestCallable/ManifestEmbeddinggone per #1594)openaican leave core deps. After this and #1594, our only remaining directopenaiimport is intext2sql.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
anthropicextra (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
llamaanddatabricksextras 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