exa-core-workflow-b

Featured

Execute Exa findSimilar, getContents, answer, and streaming answer workflows. Use when finding pages similar to a URL, retrieving content for known URLs, or getting AI-generated answers with citations. Trigger with phrases like "exa find similar", "exa get contents", "exa answer", "exa similarity search", "findSimilarAndContents".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Exa Core Workflow B — Similarity, Contents & Answer ## Overview Secondary Exa workflow covering three endpoints beyond search: `findSimilar` (discover pages semantically related to a URL), `getContents` (retrieve text/highlights for known URLs), and `answer` (get AI-generated answers with web citations). These complement the primary search workflow in `exa-core-workflow-a`. ## Prerequisites - `exa-js` installed and `EXA_API_KEY` configured - Familiarity with `exa-core-workflow-a` search patterns ## Instructions ### Step 1: Find Similar Pages ```typescript import Exa from "exa-js"; const exa = new Exa(process.env.EXA_API_KEY); // findSimilar takes a URL (not a query string) and returns // pages with semantically similar content const similar = await exa.findSimilar( "https://openai.com/research/gpt-4", { numResults: 10, excludeSourceDomain: true, // exclude openai.com from results startPublishedDate: "2024-01-01T00:00:00.000Z", excludeDomains: ["reddit.com", "twitter.com"], } ); for (const r of similar.results) { console.log(`${r.title} — ${r.url}`); } ``` ### Step 2: Find Similar with Contents ```typescript // findSimilarAndContents combines similarity search + content extraction const results = await exa.findSimilarAndContents( "https://huggingface.co/blog/llama3", { numResults: 5, text: { maxCharacters: 2000 }, highlights: { maxCharacters: 500, query: "open source LLM" }, excludeSourceDomain: true, } ); for (const r o...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category