Urgent.News

What's breaking now, across thousands of outlets.

Tech

Classifying Sales-Call Text with Embeddings for Portable CRM Actions (and Trade-offs)

Use embeddings to classify sales-call text when the labels are semantic, change over time, and need to survive a provider change. Generate vectors for a small set of labeled examples, generate a vector for each new transcript or transcript chunk, and assign the label with the highest cosine similarity. Keep the classifier's decision separate from the provider client. That last boundary is the…

To classify sales call text using embeddings, generate vector representations for a small set of labeled examples. For each new transcript or text chunk, create a vector and compare it to the labeled examples using cosine similarity. This comparison is a decision problem, not a label prediction. Store the decision separately from the provider client, allowing for flexibility in switching embedding providers without altering tagging rules or CRM workflows.

Use a gateway with a single API key and billing plan to minimize credential and invoice complexity. The pipeline consists of labeled examples (shelves) with their corresponding call notes (texts). A new text is placed on the shelf with the closest examples in terms of vector similarity. Cosine similarity is a practical first step, but treat it as evidence, not a definitive answer.

Validate decisions against real labeled examples and maintain an audit record of the top labels, their scores, the embedding model, and the version of the example set. This approach allows for inspecting disagreements between the classifier and sales/operations teams. The provided Node.js classifier demonstrates how to use the OpenAI embeddings API with Infrai's openai npm package, enabling easy integration with various backend services.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

CodeRabbit Secure: How Cross-Repository Security Agents Trace Vulnerabilities Across Dependency Graphs

CodeRabbit Secure now scans across repository boundaries, following vulnerabilities through dependency graphs and verifying exploitability in throwaway sandboxes.

  • CodeRabbit Secure expands scanning to cross repository boundaries
  • Deep Scan traverses dependency graphs, verifies exploitability in isolated environments
  • Agent manages scan, correlation, and verification states to reduce alert noise

DNS propagation: how long it really takes

DNS propagation is the delay between changing a DNS record and everyone being able to see the change. The name's a bit misleading, because nothing actually propagates.

  • It uses a pull-based approach where individual systems discover changes by querying for them.
  • TTL determines how long a record remains cached before expiring, affecting propagation time.

More from Wednesday 28 October →