Skip to content

feat: Full support for Astra DB as a backend#1340

Draft
erichare wants to merge 15 commits intomainfrom
feat/astra-db-backend
Draft

feat: Full support for Astra DB as a backend#1340
erichare wants to merge 15 commits intomainfrom
feat/astra-db-backend

Conversation

@erichare
Copy link
Copy Markdown
Collaborator

@erichare erichare commented Apr 6, 2026

This pull request introduces support for Astra DB as an alternative vector backend to OpenSearch, allowing dynamic selection of the knowledge backend and associated flows. The changes include configuration updates across Docker, Helm charts, and Python code to enable backend selection, Astra DB credentials, and flow definitions. The API is updated to expose the selected backend and to use the appropriate flow IDs and files based on the backend.

Key changes include:

Backend Selection and Configuration:

  • Added environment variables and Helm chart values for VECTOR_BACKEND, ASTRA_DB_APPLICATION_TOKEN, and ASTRA_DB_API_ENDPOINT to support Astra DB as a vector backend, in addition to OpenSearch. (docker-compose.yml [1] [2] [3]; kubernetes/helm/openrag/values.yaml [4] [5]; kubernetes/helm/openrag/templates/backend/backend-dotenv.yaml [6]; kubernetes/helm/openrag/templates/langflow/langflow-dotenv.yaml [7]
  • Updated config and environment variable loading logic to recognize and propagate the backend selection and Astra DB credentials throughout the system. (src/config/config_manager.py [1] [2]; src/config/settings.py [3] [4]

Flow Definitions and Dynamic Flow Selection:

  • Introduced FlowDefinition dataclass and dictionaries for OpenSearch and Astra DB flow definitions, including flow IDs, filenames, and vector store node IDs. This enables dynamic flow selection based on the active backend. (src/config/settings.py src/config/settings.pyR49-R113)
  • Updated logic in the API to use helper functions for retrieving the active flow IDs and backend, ensuring the correct flows are used and exposed in API responses. (src/api/settings.py [1] [2] [3] [4]

API and Model Updates:

  • Exposed the selected knowledge backend in API responses and models, ensuring clients are aware of which backend is active. (src/api/settings.py [1] [2]; src/api/v1/settings.py [3] [4] [5]
  • Modified the document existence check endpoint to short-circuit and always return "not exists" if Astra DB is the backend (since filename-based existence checks are not supported for Astra). (src/api/documents.py src/api/documents.pyL120-R127)

Helm and Flow File Updates:

  • Added Astra-specific flow files to Helm chart values and ensured Astra DB variables are included in the set of environment variables exposed to flows. (kubernetes/helm/openrag/values.yaml [1] [2]; kubernetes/helm/openrag/templates/configmaps/app-config-configmap.yaml [3]

These changes collectively enable the system to support both OpenSearch and Astra DB as vector backends, with dynamic configuration and flow selection based on the chosen backend.

@github-actions github-actions bot added backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) docker tests enhancement 🔵 New feature or request labels Apr 6, 2026
@github-actions github-actions bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Apr 6, 2026
@github-actions github-actions bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Apr 6, 2026
@github-actions github-actions bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Apr 6, 2026
@github-actions github-actions bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Apr 7, 2026
@github-actions github-actions bot added documentation 📘 Improvements or additions to documentation enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request documentation 📘 Improvements or additions to documentation labels Apr 12, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot added documentation 📘 Improvements or additions to documentation enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request documentation 📘 Improvements or additions to documentation labels Apr 12, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot added documentation 📘 Improvements or additions to documentation enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request documentation 📘 Improvements or additions to documentation labels Apr 13, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot added documentation 📘 Improvements or additions to documentation enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request documentation 📘 Improvements or additions to documentation labels Apr 13, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot added documentation 📘 Improvements or additions to documentation enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request documentation 📘 Improvements or additions to documentation labels Apr 15, 2026
@github-actions

This comment has been minimized.

Brings in latest main changes including FastMCP streamable HTTP server,
knn_vector field mapping consolidation, and JWT cookie handling fix.
Resolved conflicts in uv.lock and pyproject.toml (deduplicated
prometheus-fastapi-instrumentator); restored missing knowledge_backend
cleanup filter in _delete_existing_default_docs and removed leftover
ensure_embedding_field_exists call in processors.py that the knowledge
backend now handles internally.
@github-actions github-actions bot added documentation 📘 Improvements or additions to documentation enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request documentation 📘 Improvements or additions to documentation labels Apr 15, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot added documentation 📘 Improvements or additions to documentation enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request documentation 📘 Improvements or additions to documentation labels Apr 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2026

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) docker enhancement 🔵 New feature or request tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant