Building an Embedding Service: Text, Chunks, and Commits
Design a resilient Node.js text embedding pipeline: separate field selection, soft chunking, vector dimension checks, and atomic index commits.
11 posts tagged "AI".
Design a resilient Node.js text embedding pipeline: separate field selection, soft chunking, vector dimension checks, and atomic index commits.
Design reliable structured JSON prompts with Zod schemas and source citations: reduce LLM hallucinations and validate field evidence offline in Node.js.
Run a deterministic Vectra 0.15.0 exercise in a temporary directory to check cosine scores, metadata filters, reopening, and canceled updates.
Extract structured engineering notes with Vercel AI SDK and Zod: separate provider adapters from schema validation and offline factual checks.
Configure OpenAI, Anthropic, Gemini, and custom gateways in Vercel AI SDK: separate native APIs from compatible endpoints and verify credentials.
Distinguish text generation from vector generation, then verify ChatCrystal model settings, connection tests, and index rebuilding boundaries.
Run and verify Ollama locally for chat and RAG: isolate local vs. cloud endpoints, validate embedding dimensions, and check vector search consistency.
Connect to Baidu PaddleOCR-VL using Python standard library: manage async polling, coordinate bounding boxes, and build a document proofreading UI.
Parse Claude Code, Codex, Cursor, Trae, and Copilot chats, comparing how JSONL messages, event streams, SQLite KV stores, and database snapshots differ.
Build scoped, revisable AI agent memory with Model Context Protocol (MCP): recall prior notes, verify against live code, and write back proven fixes.
Trace storage, embeddings, summaries, and agent recall in ChatCrystal to identify which data boundaries local-first architecture actually controls.
Explore ChatCrystal, KeelDesk, n8n workflows and daily learning notes on my GitHub. Questions about the implementation are welcome.