You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
kagent-feast-mcp: runtime monkey-patch of Feast VARCHAR limit is fragile and breaks across versions #182
The kagent-feast-mcp ingestion pipeline uses a runtime monkey-patch to work around Feast's hardcoded max_length=512 VARCHAR limit in its Milvus online store integration. This approach modifies installed library source code on disk during pipeline execution, which is fragile and opaque.
Location
kagent-feast-mcp/pipelines/kubeflow-pipeline.py in the store_via_feast component:
Fragile across Feast versions: If Feast renames max_length or changes the file structure, the string replacement silently fails and data gets silently truncated at 512 chars.
Opaque in debugging: Modifying installed library source at runtime means pip show feast still reports the unpatched version. Anyone debugging the pipeline won't see the patch unless they read this specific component's source.
Unnecessary for the use case: The kagent-feast-mcp/mcp-server/server.py already uses pymilvus directly (via MilvusClient) to query the same Milvus instance without needing Feast at all. This is simpler, thread-safe, and avoids the VARCHAR limitation entirely.
Drop-and-recreate pattern: The store_via_feast component also drops the entire Milvus collection before reinserting (utility.drop_collection). If the pipeline fails mid-ingestion (e.g., GitHub API rate limit), the collection is empty and the agent returns nothing. This compounds the Feast layer's fragility.
Suggested Direction
This supports the ADR-008 direction (pymilvus over Feast) that's being discussed. The MCP server already demonstrates the cleaner pattern:
Ingestion: Use pymilvus directly with MilvusClient.upsert() keyed on file_unique_id + chunk_index for idempotent writes (no drop-and-recreate).
Activity
chasecadet commentedon Nov 20, 2026
Thank you for reporting this!
We are closing pre-restructure issues targeting the legacy
server/,server-https/,manifests/,kagent-feast-mcp/, or in-processSentenceTransformerprototype code. In #207, #210, #233, #240, and #249,kubeflow/docs-agentmigrated to dedicated TEI (text-embeddings-inference), FastMCP (docs-agent-mcp/mcp-server/), shared modular KFP pipelines (docs-agent-mcp/pipelines/), and Helm charts (docs-agent-mcp/charts/).If you still observe an equivalent issue on the current
mainstack, please feel free to open a new issue using the current issue templates.