Register and share your invite link to earn from video plays and referrals.

Search results for InformationExtraction
InformationExtraction community
One keyword maps to one global community path.
Create community
People
Not Found
Tweets including InformationExtraction
# Decision Points in AI Agent Development # Synchronous vs Asynchronous ⚡ 🎯 The Hook The very first architectural decision for your LLM agent: should it respond synchronously or asynchronously? Get this wrong, and you'll be rebuilding your entire architecture later. Traditional web APIs assumed ~100ms responses. Agents? Their latency spans seconds to tens of minutes. That variance makes sync/async the unavoidable first fork. 📋 Overview Synchronous means the client sends an HTTP request, holds the connection, and receives the result as the response. State lives in-request scope -- no job queues, no checkpoint stores. Asynchronous means the client gets a job ID immediately (HTTP 202 Accepted), and background workers handle the processing. Results arrive via polling, webhooks, SSE, or WebSockets. Execution state is persisted as checkpoints in external stores. 🔍 Decision Points Two variables drive this decision. 1️⃣ **Latency budget** is the primary axis. It comes down to whether LLM p99 latency exceeds client wait tolerance. - Within 5-10s (user-facing) or 30s (API integration) → Synchronous - Exceeds the above, or duration is unpredictable → Asynchronous - Bimodal distribution (short path succeeds, long path fails) → Hybrid 2️⃣ **Reversibility / retry cost** is the secondary axis. - Failure permits full restart → Synchronous is sufficient - Mid-process resume needed; restart is costly → Asynchronous If human approvals occur mid-flow, holding a synchronous connection becomes impractical. Asynchronous becomes mandatory. 💡 Key Details 🟢 **Synchronous shines in simplicity.** Debugging follows stack traces. Testing validates function inputs and outputs. Deployments treat it as stateless HTTP. Fewer moving parts mean easier troubleshooting. It suits text classification, information extraction, basic Q&A, summarization, and structured output -- tasks completing in one LLM call plus 0-2 lightweight tools. 🟡 **Asynchronous shines in durability and scalability.** Processing time has no ceiling. Failed workers resume from the last checkpoint. Human approvals (minutes to days) don't consume workers. Horizontal scaling requires only adding queue workers. But it demands job queues (SQS, Redis Streams, Temporal), checkpoint stores, result stores, and notification mechanisms. Debugging requires distributed tracing across request-to-queue-to-worker-to-result flows. ⚖️ Trade-offs | Dimension | Synchronous | Asynchronous | |---|---|---| | Infrastructure complexity | Low (HTTP only) | High (queues + stores + notifications) | | Debugging | Stack traces | Distributed tracing required | | Fault tolerance | Crash = total loss | Resume from checkpoint | | Scaling | Connection holding is the bottleneck | Add workers horizontally | | Human approval | Impractical | Natural fit | 🛠️ Use Cases 🔵 **Synchronous fits**: Text classification, extraction, simple Q&A, summarization, structured output generation. Tasks that reliably complete in seconds. 🔴 **Asynchronous fits**: Multi-tool chains, cross-SaaS processes, human-approval workflows, tasks exceeding 30 seconds. 🟣 **Hybrid**: An internal async pipeline that auto-switches -- returns synchronous responses within the threshold, returns job IDs when exceeded. Especially effective for bimodal latency distributions. 📌 **Default strategy**: When in doubt, start synchronous. Migrating from sync to async when latency exceeds limits is far safer than the reverse. Sync-to-async migration is straightforward; async-to-sync rollback leaves unnecessary infrastructure behind. #AIAgents# #SoftwareArchitecture#
Show more
Meet @LHTwin1AI, our Co-founder and CTO. If you have asked Siri a question in the last decade, you have used something he helped build. At @Apple, Huiting helped move Siri’s natural-language understanding from traditional approaches to deep learning, deploying it across languages and markets worldwide. Just as importantly, he learned what it takes to make AI genuinely useful while treating user privacy as a core architectural constraint, not an afterthought. At Moloco, he led a core AI and machine-learning team building real-time targeting systems. Those systems had to make precise decisions in milliseconds, often from limited and imperfect signals, at a scale where small errors carry real commercial consequences. Earlier, Huiting began his career in search at Baidu and became a founding engineer at Zuoyebang, the education platform that spun out of Baidu and later reached a $10 billion valuation. He then became a founding engineer at Eigen, where he helped build the first version of its system for extracting structured knowledge from complex documents. That path leads directly to Twin1. Search and question answering taught him how to find the right knowledge. Information extraction taught him how to recover it from messy, unstructured sources. Recommendation systems taught him how to infer what matters from incomplete signals. Siri taught him how to deliver intelligent, conversational experiences at global scale, with privacy built in. Twin1 brings those disciplines together in a new form: a permission-aware digital AI Twin that learns from a person’s emails, meetings, documents, and workplace tools, builds a model of their knowledge, context, and judgment, and helps make that intelligence available without taking control away from the individual. More than a decade of machine learning in production has taught Huiting that useful AI is not just about model quality. It is about context, precision, trust, and knowing what should not be shared. That is why privacy at Twin1 is part of the architecture, not a promise added afterward. Huiting holds a Master’s in Computational Data Science from Carnegie Mellon University and a BS in Computer Science from Beijing University of Posts and Telecommunications.
Show more
Run inference over millions of records — free of SQL, and without your data ever leaving Snowflake. Here's distributed batch inference at scale ⚙️ Title: Batch Inference at Scale URL: ⚙️ Overview A capability that runs distributed inference workloads on Snowpark Container Services (SPCS) with Ray as the execution framework. Inference runs as a dedicated distributed workload, supporting both traditional models and LLMs, consolidating complex operations into a single API call. ❓ Challenges Solved Many customers, especially those migrating from non-SQL systems, need batch inference decoupled from SQL. ・This is especially true for files and unstructured data at large scale ・Rearchitecting workflows around SQL-first patterns is a heavy burden 💡 Methodology & How It Works ・The input DataFrame is materialized and written to a stage as Parquet files ・A job is provisioned on SPCS; the primary node initializes as the Ray head and replicas join as workers ・Each worker reads staged data, performs inference independently, and writes results to an output stage ・Unified API: a single run_batch() call handles both structured and unstructured data ・Multimodal support (images, audio, video); workers load weights once and reuse across batches; JobSpec controls workers and GPU allocation 🌍 Use Cases ・Nightly summarization of millions of support tickets ・Product catalog enrichment via image-to-text generation ・Information extraction from scanned PDFs, audio transcription and labeling, video classification and description BatchInferenceTask integrates with Snowflake Tasks for DAG automation, and all processing stays inside Snowflake — running large-scale inference while preserving data governance. #Snowflake# #BatchInference#
Show more