Skip to content

Codex/flutter gemma integration points#78

Merged
dev07060 merged 6 commits into
mainfrom
codex/flutter-gemma-integration-points
Jun 18, 2026
Merged

Codex/flutter gemma integration points#78
dev07060 merged 6 commits into
mainfrom
codex/flutter-gemma-integration-points

Conversation

@dev07060

Copy link
Copy Markdown
Owner

Summary

  • Add MobileRagVectorStore as a small adapter surface for external embedding / LLM runtimes such as flutter_gemma.
  • Export the new vector-store facade from the package public API.
  • Add native tests for precomputed embedding storage/search and SourceRagService.dispose() lifecycle cleanup.
  • Harden log-stream cleanup with a timeout so dispose does not hang.
  • Keep flutter_rust_bridge pinned to 2.11.1 for the current generated binding/runtime surface.

Improved

This creates a concrete coupling point for flutter_gemma-style integration without claiming that mobile_rag_engine bundles or replaces an LLM runtime. The useful bridge is now clearer: external runtime produces or consumes embeddings/messages, while mobile_rag_engine owns local storage/search behavior.

Trade-off

MobileRagVectorStore is intentionally narrow. It maps one external document to one source/chunk row, so it is useful as an adapter/proof surface, but it does not yet expose the full parsing, chunking, hybrid retrieval, source hydration, and context assembly strength of the main RAG pipeline.

Verification

  • flutter analyze
  • flutter test

Result: all checks passed, including 80 tests.

Follow-up

  • Build a flutter_gemma companion/demo layer around the stronger context path:
    searchHybridWithContext(..., hydrationMode: contextOnly) -> prompt/message bridge -> flutter_gemma chat generation.
  • Add a small example app or doc showing the exact handoff boundary.
  • Avoid broad “deep integration” language in promotion; position this as a practical local-RAG retrieval bridge for on-device LLM apps.

@dev07060 dev07060 self-assigned this Jun 18, 2026
@dev07060 dev07060 merged commit 480f6b8 into main Jun 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant