{"uid":"cap_S1Gmv6fXUk9-ITvIbXFvx","slug":"kihustle-cosine-similarity-bag-of-words-f58c5657","name":"KiHustle Cosine Similarity (Bag-of-Words)","description":"Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.","url":"https://kihustle.tech/api/v1/cosine-similarity-bow","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text_a":{"type":"string"},"text_b":{"type":"string"}}},"responseSchema":{"type":"json","example":{"result":"processed","status":"success"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IxgbRnFYcRUlYgasRPJ7H","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the cosine similarity score between two text strings using a bag-of-words (BoW) representation.","exampleAgentPrompt":"Can you compute the cosine similarity between these two texts using bag-of-words: 'Machine learning helps automate tasks' and 'Automation with AI reduces manual work'?","exampleUseCases":[{"title":"Duplicate content detection pipeline","prompt":"Check if these two product descriptions are substantially the same by computing their bag-of-words cosine similarity: 'Wireless noise-cancelling headphones with 30-hour battery' and 'Noise cancelling wireless headphones, battery life 30 hours'."},{"title":"Resume-to-job-posting relevance scoring","prompt":"Score how well this resume summary matches the job description using cosine similarity — resume: 'Experienced Python developer with ML and data pipeline skills', job: 'We seek a Python engineer skilled in machine learning and ETL workflows'."},{"title":"FAQ deduplication for chatbot","prompt":"Tell me the cosine similarity between these two FAQ questions so I know if they're duplicates: 'How do I reset my password?' and 'What steps do I take to change my login password?'"}],"resultDescription":"Returns a JSON object with a cosine similarity score (a float between 0 and 1, where 1 means identical and 0 means no overlap) and a success status field indicating whether the computation completed successfully.","failureModes":["Missing text_a or text_b fields returns an error","Empty strings may produce a zero or undefined similarity score","Very long texts may hit request size limits","Non-string inputs may cause a validation error","Server errors return a non-success status field"],"whenToPreferThis":"Prefer this endpoint when you need a fast, lightweight, word-overlap-based similarity measure between two short-to-medium texts without needing deep semantic embeddings. Ideal for deduplication, basic relevance scoring, and keyword-overlap checks where speed and low cost matter more than nuanced semantic understanding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:56:57.136Z","isFirstParty":false}