Skip to content

Issues pipeline chunk_size (1500) exceeds the TEI embedding limit (1000) — tail of long chunks is unsearchable #216

Description

@kmr-rohit

Problem

The GitHub issues ingestion pipeline chunks issue content up to 1500 characters, but truncates every chunk to 1000 characters before sending it to the TEI embeddings service:

  • docs-agent-mcp/pipelines/issues-pipeline.py#L481 — chunk_size: int = 1500
  • docs-agent-mcp/pipelines/issues-pipeline.py#L301 — max_tei_chars = 1000, applied as r["content_text"][:max_tei_chars]

So for any chunk longer than 1000 chars, the last ~500 characters are stored in Milvus and shown to users, but were never embedded — that text is invisible to semantic search.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions